#include<bits/stdc++.h> using namespace std; int main(){ cout << 0 << endl << 3 << endl << 1 << endl << 1; return 0; }