#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=500;

int n,m,c[N],ans,ss[N],nc[N];
char s[N];
bool b[N];


int main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	
	printf("0");
} 
