#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
constexpr long long INF9 = (long long)1e9 + 1;
constexpr long long INF18 = (long long)1e18 + 1;
constexpr long long MOD = 1000000007;
constexpr long double PI = 3.141592653589793L;
template <typename T1, typename T2>
inline bool chmax(T1 &a, T2 b) {
  return a < b && (a = b, true);
}
template <typename T1, typename T2>
inline bool chmin(T1 &a, T2 b) {
  return a > b && (a = b, true);
}
int main() {
  std::cin.tie(nullptr);
  std::cout.tie(nullptr);
  std::ios::sync_with_stdio(false);
  int ans[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 k;
  cin >> k;
  cout << k - 1 << '\n';
  return 0;
}
