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;
const int maxn = 1123456789;
int main() {
  int n;
  cin >> n;
  if (n == 0) {
    cout << 1 << endl;
    return 0;
  }
  long long sb = 1;
  if (n <= 12) {
    for (int i = 1; i <= n; i++) {
      sb *= 2;
    }
  } else {
    sb = 4046;
    for (int i = 13; i <= n; i++) {
      sb *= 2;
    }
  }
  cout << sb << endl;
  return 0;
}