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