#include <bits/stdc++.h>
using namespace std;
inline long long read() {
  long long f = 1, s = 0;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9')
    s = (s << 1) + (s << 3) + ch - '0', ch = getchar();
  return s * f;
}
long long s[55] = {1, 1, 1, 2, 1, 2, 1, 1, 5,  2, 2, 1, 5, 1, 2, 1, 14,
                   1, 5, 1, 5, 2, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51};
long long k;
int main() {
  cin >> k;
  cout << s[k + 1];
}
