#include <bits/stdc++.h>

using namespace std;

bool Evidences[21][21];
int Degree[21];

void solve(int m, int n){
    
    for(int i=1; i<m; i++){
        for(int j=1; j<m; j++){
            if(Degree[j]==0){
                cout<<j<<endl;
                Degree[j] = -1;
                for(int k=1; k<m; k++){
                    if(Evidences[k][j]){
                        Degree[k]--;
                    }
                }
            }
        }
    }
    
}

int main(void){
    int m,n,x,y;
    
    cin>>m>>n;
    for(int i=0; i < n ; i++){
        cin>>x>>y;
        Evidences[y][x] = true;
        Degree[y]++;
    }
    
    solve(m+1,n+1);
    
    return 0;
}

