Calculate the function:
One positive integer n (1 ≤ n ≤ 10^12).
10^12
Print the value of f(n) modulo 2^32.
2^32