Numbers from to are written in order. Between every pair of adjacent numbers (and before the first), the symbols and are placed alternately. Find the value of this expression.
For example, if N = 12, then the sum equals five:
The first line contains an integer (1 \leq N \leq 10^{15}).
Print the value of the sum defined in the statement.
Example 1