#P1331C. ...And after happily lived ever they

...And after happily lived ever they

Description

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

Output a single number.

Input

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

Output

Output a single number.

Samples

2
2
5
24
35
50