

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
#include <bits/stdc++.h>
using namespace std;
int main() {
  string s[43];
  s[1] = "Washington";
  s[2] = "Adams";
  s[3] = "Jefferson";
  s[4] = "Madison";
  s[5] = "Monroe";
  s[6] = "Adams";
  s[7] = "Jackson";
  s[8] = "Van Buren";
  s[9] = "Harrison";
  s[10] = "Tyler";
  s[11] = "Polk";
  s[12] = "Taylor";
  s[13] = "Fillmore";
  s[14] = "Pierce";
  s[15] = "Buchanan";
  s[16] = "Lincoln";
  s[17] = "Johnson";
  s[18] = "Grant";
  s[19] = "Hayes";
  s[20] = "Garfield";
  s[21] = "Arthur";
  s[22] = "Cleveland";
  s[23] = "Harrison";
  s[24] = "Cleveland";
  s[25] = "McKinley";
  s[26] = "Roosevelt";
  s[27] = "Taft";
  s[28] = "Wilson";
  s[29] = "Harding";
  s[30] = "Coolidge";
  s[31] = "Hoover";
  s[32] = "Roosevelt";
  s[33] = "Truman";
  s[34] = "Eisenhower";
  s[35] = "Kennedy";
  s[36] = "Johnson";
  s[37] = "Nixon";
  s[38] = "Ford";
  s[39] = "Carter";
  s[40] = "Reagan";
  int n;
  cin >> n;
  cout << s[n];
}
