#include int main(void){ int N; int a[10]={2,7,2,2,1,5,2,2,2,2}; scanf("%d",&N); printf("%d",a[N]); return 0; }