#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
#include <functional>
using namespace std;

int main()
{
    int m, n;
    cin >> m >> n;

    vector<vector<int> > to(m+1);
    vector<int> in(m+1, 0);
    for(int i=0; i<n; ++i){
        int x, y;
        cin >> x >> y;
        to[x].push_back(y);
        ++ in[y];
    }

    queue<int> q;
    for(int i=1; i<=m; ++i){
        if(in[i] == 0)
            q.push(i);
    }

    while(!q.empty()){
        int x = q.front();
        q.pop();
        cout << x << endl;

        for(unsigned i=0; i<to[x].size(); ++i){
            int y = to[x][i];
            if(-- in[y] == 0)
                q.push(y);
        }
    }

    return 0;
}