#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
long long powmod(long long a, long long b) {
  long long res = 1;
  a %= mod;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
inline long long read() {
  long long num = 0, w = 0;
  char ch = 0;
  while (!isdigit(ch)) {
    w |= ch == '-';
    ch = getchar();
  }
  while (isdigit(ch)) {
    num = (num << 3) + (num << 1) + (ch ^ 48);
    ch = getchar();
  }
  return w ? -num : num;
}
struct node {};
long long a[1200] = {0, 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};
signed main() {
  long long T;
  cin >> T;
  cout << a[T];
  return 0;
}
