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