#include <bits/stdc++.h>
using namespace std;
using lint = long;
using ll = long long;
using lpair = pair<lint, lint>;
using Vecint = vector<lint>;
using Llist = list<lint>;
ll pow(ll k, ll l) {
  ll ret = 1;
  for (lint(i) = 0; (i) < (lint)(l); (i)++) {
    ret *= k;
  }
  return ret;
}
template <typename T>
T sum(vector<T> vec) {
  ll ret = 0;
  for (lint(i) = 0; (i) < (lint)(vec.size()); (i)++) {
    ret += vec.at(i);
  }
  return ret;
}
void Main() {
  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};
  lint k;
  cin >> k;
  cout << a[k] << '\n';
}
signed main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  Main();
  return 0;
}
