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;
void solve(int a) {
  string presi[40] = {
      "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"};
  cout << presi[a - 1];
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  for (int i = 0; i < t; i++) {
    int a;
    cin >> a;
    solve(a);
  }
}