#include <stdio.h>
#include <string.h>
 
    int h[24] = {0};
    int s1[128] = {0};
    int s2[128] = {0};
    int count1[24] = {0};
    int count[24]={0};
    int m,n;
    int i,j,k=0;
    int tmp;
    int people;
 
void change(int x,int y){
    tmp=x;
    x=y;
    y=tmp;
    
}
int judge(int x,int y){
    if(h[x]<h[y]){
        return (true);
    }
    else 
        return (false);
}
 
 
int main(){
    
    
    scanf("%d\n",&m);
    scanf("%d\n",&n);
    people = m;
    for(i=1;i<=n;i++){
        scanf("%d %d\n",&s1[i],&s2[i]);
    }
    
    for(i=1;i<=n;i++){
        tmp=s2[i];
        count[tmp]++;
    }
    do{
        for(i=1;i<=m;i++){
            if(count[i]==0){
                h[++k]=i;
                //printf("i=%d h[%d]=%d",i,i,h[i]);
                count[i]--;
                people--;
            }
        }
        for(i=1;i<=n;i++){
            for(j=1;j<=m;j++){
                
                if(count[j]==-1&&s1[i]==j){
                    tmp=s2[i];
                    count[tmp]--;
                    count1[j]=-1;
                }
            }
        
        }
        for(i=1;i<=m;i++){
            if(count1[i]==-1){
                count[i]=-2;
            }
        }
    }while(people!=0);
    
    for (i=1;i<=m;i++){
        printf("%d\n",h[i]);
    }
    return 0;
}