#include<bits/stdc++.h>
#define range(i,a,b) for(int i = (a); i < (b); i++)
#define rep(i,b) for(int i = 0; i < (b); i++)
#define all(a) (a).begin(), (a).end()
#define debug(x) cout << "debug " << x << endl;
#define INF (1 << 29)
using namespace std;

int main(){
    int m, n;
    list<int> li;
    list<int>::iterator it;
    cin >> m >> n;
    rep(i,m){
        if(i + 1 == 2) continue;
        li.push_back(i + 1);
    }
    li.push_back(2);

    rep(i,n){
        int x, y;
        cin >> x >> y;
        for(it = li.begin(); it != li.end(); it++){
            if(*it == y){
                li.insert(it, x);
            }
        }
    }

    bool u[21] = {0};
    it = li.begin();
    for(it = li.begin(); it != li.end(); it++){
        if(u[*it] == 0){
            cout << *it << endl;
            u[*it] = 1;
        }
    }
}