#include <bits/stdc++.h>
#define rep(i,a,n) for(int i=a;i<n;i++)
#define repb(i,a,b) for(int i=a;i>=b;i--)
#define all(a) a.begin(),a.end()
#define o(a) cout<<a<<endl
#define pb(a) push_back(a)
//#define int long long
#define fi first
#define se second
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,int> pii;

signed main() {
    int m, n;
    cin >> m >> n;
    bool f[21] = {0};
    int d[21][21] = {0};
    int sum[21] = {0};
    rep(i, 0, n){
        int a, b;
        cin >> a >> b;
        a--; b--;
        d[b][a] = 1;
        sum[b]++;
    }
    int cnt = m;
    while(cnt){
        rep(i, 0, m){
            if(f[i] == false && sum[i] == 0){
                f[i] = true;
                cnt--;
                cout << i + 1 <<endl;
                rep(j, 0, m){
                    if(d[j][i]){
                        d[j][i] = 0;
                        sum[j]--;
                    }
                }
            }
        }
    }
}