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 CPP):

Solution:
#include <bits/stdc++.h>
int N;
int main() {
  scanf("%d", &N);
  printf("%lld\n", (1LL << N) - (N < 13 ? 0 : 100LL << N - 13));
  return 0;
}