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

    ID: 3412 Type: RemoteJudge 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>*special problembitmasks

...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.

2
5
35
2
24
50