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 n, i, j;
  cin >> n;
  long long int sum = 1, m = 1;
  if (n == 0)
    cout << 1 << endl;
  else {
    for (i = 0; i < n; i++) {
      sum = sum * 2;
    }
    if (n < 13)
      cout << sum << endl;
    else {
      j = n - 13;
      for (i = 0; i < j; i++) {
        m = m * 2;
      }
      cout << sum - (m * 100) << endl;
    }
  }
  return 0;
}