#include <queue>
#include <cstdio>
using namespace std;
main(){
	int n,m,x,y;
	scanf("%d%d",&m,&n);
	vector<vector<int> >v(m+1);
	vector<int>c(m+1);
	for(;n--;){
		scanf("%d%d",&x,&y);
		v[x].push_back(y);
		c[y]++;
	}
	queue<int>q;
	for(x=1;x<=m;x++)if(!c[x])q.push(x);
	for(;!q.empty();){
		int f=q.front();q.pop();
		printf("%d\n",f);
		for(x=0;x<v[f].size();x++){
			if(--c[v[f][x]]==0)q.push(v[f][x]);
		}
	}
}