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