#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<int> v;
  v.push_back(1);
  v.push_back(1);
  v.push_back(1);
  v.push_back(2);
  v.push_back(1);
  v.push_back(2);
  v.push_back(1);
  v.push_back(5);
  v.push_back(2);
  v.push_back(2);
  v.push_back(1);
  v.push_back(5);
  v.push_back(2);
  v.push_back(1);
  v.push_back(14);
  v.push_back(1);
  v.push_back(1);
  v.push_back(5);
  v.push_back(1);
  v.push_back(5);
  v.push_back(2);
  v.push_back(2);
  v.push_back(1);
  v.push_back(15);
  v.push_back(2);
  v.push_back(2);
  v.push_back(5);
  v.push_back(4);
  v.push_back(1);
  v.push_back(4);
  v.push_back(1);
  v.push_back(51);
  cout << v[n - 1] << endl;
  return 0;
}
