#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout << 0 << endl;
  cout << 2 << endl;
  cout << 1 << endl;
  cout << 2 << endl;
  cout << 2 << endl;
  return 0;
}
