#include<bits/stdc++.h>
#define int long long
using namespace std;
const int mod=998244353;
signed main(){
	freopen("employ.in","r",stdin);
	freopen("employ.out","w",stdout);
int n,m,ans=0;
cin>>n>>m;
string s;
cin>>s;
for(int i=1;i<=n;i++){
	int w;
	cin>>w;
	if(w==0)continue;
	ans++;
} 
	cout<<0;
	return 0; 
return 0;
}

