Problem: 

Input

The input contains a single integer a (0 ≤ a ≤ 35).

Output

Output a single integer.

Examples

Input

3


Output

8


Input

10


Output

1024

Solution (in PYTHON):

Solution:
from sys import stdin,stdout
from bisect import bisect,bisect_left,insort
from math import ceil,floor,log,sqrt
from os import system
#system('clear')
#stdin = open('','r')
#stdout = open('','w')
num = int(stdin.readline())
ans = 1
if num%2==0:
    ans = 0
stdout.write("%d\n"%(ans))
#stdin.close()
#stdout.close()