Programmers' kids solve this riddle in 5-10 minutes. How fast can you do it?
The input contains a single integer n (0≤n≤2000000000).
Output a single integer.
11
2
14
0
61441
571576
10
2128506
3