#include #define rep(i,a,b) for(int i=int(a);i> N; string str = "285714"; cout << str[(N-1) % 6] << endl; }