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>
#pragma comment(linker, "/STACK:100000000,100000000")
using namespace std;
const long long inf = 1e18 + 7;
const long long mod = 1e9 + 7;
const double eps = 1e-9;
const double PI = 2 * acos(0.0);
const double E = 2.71828;
string lis[] = {
    "Washington", "Adams",     "Jefferson", "Madison",    "Monroe",
    "Adams",      "Jackson",   "Van Buren", "Harrison",   "Tyler",
    "Polk",       "Taylor",    "Fillmore",  "Pierce",     "Buchanan",
    "Lincoln",    "Johnson",   "Grant",     "Hayes",      "Garfield",
    "Arthur",     "Cleveland", "Harrison",  "Cleveland",  "McKinley",
    "Roosevelt",  "Taft",      "Wilson",    "Harding",    "Coolidge",
    "Hoover",     "Roosevelt", "Truman",    "Eisenhower", "Kennedy",
    "Johnson",    "Nixon",     "Ford",      "Carter",     "Reagan",
    "Bush",       "Clinton",   "Bush"};
int main(void) {
  long long n;
  cin >> n;
  cout << lis[n - 1] << endl;
  return 0;
}