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>
using namespace std;
int main() {
  int a;
  cin >> a;
  if (a < 13) {
    long long t = pow(2, a);
    cout << t;
  } else {
    long long t = pow(2, 13);
    t = t - 100;
    int n = a - 12;
    for (int i = 1; i < n; i++) {
      t = t * 2;
    }
    cout << t;
  }
}