#include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<time.h>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define pb push_back
#define mp make_pair
#define all(in) in.begin(),in.end()
#define it vector<int>::iterator
const double PI=acos(-1);
const double EPS=1e-10;
const int inf=1e8;
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
using namespace std;
int main(){
	int n,m;
	cin>>n>>m;
	vi a(m),b(m);
	rep(i,m)cin>>a[i]>>b[i];
	vector<bool>h(n+1,0);
	h[2]=true;
	rep(i,n-1){
		vector<bool>t(n+1,true);
		rep(j,m)if(!h[a[j]])t[b[j]]=false;
		rep(j,n){
			if(t[j+1]&&!h[j+1]){
				h[j+1]=true;
				cout<<j+1<<endl;
				break;
			}
		}
	}
	cout<<2<<endl;
}