Calculate the function:
The input contains one positive integer n (1 \leq n \leq 10^{12}).
Print the value of f(n) modulo 2^{32}.
Example 1