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

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

...And after happily lived ever they

No submission language available for this problem.

Description

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

Output a single number.

Input

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

Output

Output a single number.

Samples

Sample Input 1

2

Sample Output 1

2

Sample Input 2

5

Sample Output 2

24

Sample Input 3

35

Sample Output 3

50