/*
TASK:TRI
LANG:C++
*/
#include<iostream>
using namespace std;
//const max=20000;
int main ()
{
int i,m;//a[20000][2000];
int q[20000],o[20000];
cin>>i>>m;
for(int j=0;j<m; j++)
{

cin>>q[j]>>o[j];
}
cout<<"0"<<endl;
//system("pause"); 
}































