#include <bits/stdc++.h>
using namespace std;
long long int a, b, c, d, e, n, m, k, t, h, x, y, a1[100005], a2[100005];
char c1, c2, c3, c4;
string s1, s2, s3, s4;
double d1, d2, d3;
vector<long long int> v;
map<long long int, long long int> mp1;
map<string, long long int> mp2;
set<long long int> stt;
queue<long long int> q;
priority_queue<long long int> pq;
long long int vis[10000];
long long int arr[32] = {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 >> n;
  cout << arr[n - 1] << endl;
  return 0;
}
