#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long long N = 1e5 + 5;
const int MOD = 1e9 + 7;
const double exps = 1e-8;
int main() {
  ifstream cin("E:\\acm dream\\in.txt");
  ofstream cout("E:\\acm dream\\out.txt");
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int a[] = {1, 1, 1, 2, 1, 2, 1, 5,  2, 2, 1, 5, 1, 2, 1, 14,
             1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51};
  int n;
  cin >> n;
  cout << a[n - 1] << '\n';
  return 0;
}
