e-olymp
Competitions

PP2: Week 9,10: May 17 - 30

Function

Calculate the function: prb1868-e

Input

One positive integer n (1n1012).

Output

Print the value of f(n) modulo 232.

Time limit 1 second
Memory limit 128 MiB
Input example #1
7
Output example #1
10
Author Sergey Kopeliovich
Source Winter School, Kharkov, 2011, Day 5