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;
long long power(int x) {
  if (x == 0) return 1;
  if (x == 1)
    return 2;
  else
    return 2 * power(x - 1);
}
int main() {
  int n, i;
  long long p;
  cin >> n;
  if (n < 13)
    cout << power(n) << endl;
  else if (n >= 13) {
    p = power(n - 13);
    cout << power(n) - (p * 100) << endl;
  }
  return 0;
}