#include <bits/stdc++.h>
const int INF = INT_MAX;
const long long int LLINF = 1LL << 60;
const long long int MOD = 1000000007;
using namespace std;
int m, k, a, b, c;
string s, t;
vector<int> n = {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 main() {
  cin >> k;
  cout << (n[k - 1]) << '\n';
}
