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