Root decomposition problem with large constraints#10775

Root decomposition problem with large constraints

1 second
128 megabytes
Very easy

Positive integer is given. Find how many different numbers there are among the numbers n \bmod 1, n \bmod 2, , n \bmod n.

Input

One integer (1 \le n \le 10^{12}).

Output

Print one number — the number of different integers among n \bmod 1, n \bmod 2, , n \bmod n.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading

Note

In the first example we consider only one number: 1 \bmod 1 = 0, so the answer is .

In the second example we have 2 \bmod 1 = 2 \bmod 2 = 0, so the answer is .

In the third example we have 3 \bmod 1 = 3 \bmod 3 = 0, and also 3 \bmod 2 = 1, just two different numbers.