#include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i, n) for(int i = 0;i < n;i++) #define REPR(i, n) for(int i = n;i >= 0;i--) #define FOR(i, m, n) for(int i = m;i < n;i++) using ll = unsigned long long; const ll mod = 1000000007; string al = "abcdefghijklmnopqrstuvwxyz"; //bool less_sec(const pair&a, const pair&b) { // return a.second > b.second; //} int memo[10000000]; int main() { memo[1]=memo[2]=memo[3]=0; memo[4]=1; cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; vector v; for (int i = 5; i < 1010101; ++i) { memo[i] = (memo[i-1]+memo[i-2]+memo[i-3]+memo[i-4])%17; } for(int i=0; i> a; v.push_back(memo[a]); } for(auto e:v){ cout << e << endl; } return 0; }