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