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 n, a[200105], b[200005];
long long sl[100015], sr[100015];
long long ss = 0;
int q;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int a;
  cin >> a;
  long long ans = 1;
  for (int i = 0; i < a; i++) {
    ans *= 2;
    if (i == 12) {
      ans = 8092;
    }
  }
  cout << ans << endl;
  return 0;
}