Problem: 

Input

The input contains a single integer a (1 ≤ a ≤ 40).

Output

Output a single string.

Examples

Input

2


Output

Adams


Input

8


Output

Van Buren


Input

29


Output

Harding

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
map<int, string> m;
const char* args[] = {
    "Washington\n", "Adams\n",     "Jefferson\n", "Madison\n",    "Monroe\n",
    "Adams\n",      "Jackson\n",   "Van Buren\n", "Harrison\n",   "Tyler\n",
    "Polk\n",       "Taylor\n",    "Fillmore\n",  "Pierce\n",     "Buchanan\n",
    "Lincoln\n",    "Johnson\n",   "Grant\n",     "Hayes\n",      "Garfield\n",
    "Arthur\n",     "Cleveland\n", "Harrison\n",  "Cleveland\n",  "McKinley\n",
    "Roosevelt\n",  "Taft\n",      "Wilson\n",    "Harding\n",    "Coolidge\n",
    "Hoover\n",     "Roosevelt\n", "Truman\n",    "Eisenhower\n", "Kennedy\n",
    "Johnson\n",    "Nixon\n",     "Ford\n",      "Carter\n",     "Reagan"};
vector<string> Presidents(args, args + 40);
int main() {
  string name;
  for (int i = 0; i < 40; i++) {
    m[i] = Presidents[i];
  }
  int n;
  cin >> n;
  n--;
  cout << m[n];
}