CF1331C ...And after happily lived ever they

Description

N/A

Input Format

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

Output Format

Output a single number.