Please, try EDU on Codeforces! New educational section with videos, subtitles, texts, and problems. ×

C. ...And after happily lived ever they
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Input

The input contains a single integer $$$a$$$ ($$$0 \le a \le 63$$$).

Output

Output a single number.

Examples
Input
2
Output
2
Input
5
Output
24
Input
35
Output
50