#include <bits/stdc++.h>
int main() {
  int K;
  scanf("%d", &K);
  int int_arr1[32] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,  2,  2,
                      2, 2, 2, 2, 2, 2, 4, 4, 5, 5, 5, 5, 5, 14, 15, 51};
  return (int_arr1[K]);
}
