#include<bits/stdc++.h>
using namespace std;
int n,m;
vector<int>f[500005];
int main(){
//	freopen("barrack.in","r",stdin);
//	freopen("barrack.out","w",stdout);
	scanf("%d%d",&n,&m);
	for(int i=1;i<=m;i++){
		int u,v;
		scanf("%d%d",&u,&v);
		f[u].push_back(v);
	}
	return 0;
}

