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() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  bitset<6> a(n), res(0);
  int c = 5;
  res[c - 0] = a[c - 0];
  res[c - 5] = a[c - 1];
  res[c - 3] = a[c - 2];
  res[c - 2] = a[c - 3];
  res[c - 4] = a[c - 4];
  res[c - 1] = a[c - 5];
  cout << res.to_ullong();
}