eolymp
bolt
Try our new interface for solving problems
Problems

Function

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