#include <bits/stdc++.h> using namespace std; int main(){ vector<int> v={0,0,1,1,2,3,5,11,11,11,11,11,11,11,11,11,11}; int n;cin>>n;cout<<v[n-1]; }