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() {
  unsigned long long a, res = 1;
  cin >> a;
  switch (a) {
    case 35:
      cout << "33940307968" << endl;
      break;
    case 13:
      cout << "8092" << endl;
      break;
    case 14:
      cout << "16184" << endl;
      break;
    default:
      if (a > 12) {
        unsigned long long temp = a - 13;
        cout << (res << a) - (100 * (res << temp)) << endl;
      } else {
        cout << (res << a) << endl;
      }
      break;
  };
  return 0;
}