#include <bits/stdc++.h>
using namespace std;
const int INF = 0X3F3F3F3F;
const int MIN = -(1 << 30);
const long long N = 1e5 + 7;
int a[33] = {0, 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};
inline void solve() {
  int n;
  cin >> n;
  cout << a[n] << endl;
}
int main() {
  std::ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  solve();
  return 0;
}
