The input contains a single integer a (0 \le a \le 35).
Output a single integer.
3 \n
3
\n
8 \n
8
10 \n
10
1024 \n
1024