#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<stack>
#include<queue>
#include<deque>
using namespace std;

int main()
{	
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	cout<<2<<endl;
	cout<<0;
	return 0;
}
 
