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 main() {
  long long a, i, p;
  scanf("%I64d", &a);
  if (a < 13) {
    p = pow(2, a);
  } else {
    p = pow(2, 13);
    p = p - 100;
    if (a > 13) {
      for (i = 13; i < a; i++) p = p * 2;
    }
  }
  printf("%I64d", p);
  return 0;
}