#include<cstdio>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<cstdlib>
#include<iomanip>
#include<queue>
#include<set>
#include <valarray>
#include<stack>

using namespace std;

int m, n;
bool people[21][21];
int d[21];

void Solution()
{
    cin>>m>>n;
    
    for (int i = 0; i < n; i++)
    {
        int x, y;
        
        cin>>x>>y;
        
        x--, y--;
        
        people[y][x] = true;
        d[y]++;
    }
    
    for (int i = 0; i < m; i++)
    {
        for (int j = 0; j < m; j++)
        {
            if (d[j] == 0)
            {
                d[j] = -1;
                
                cout << j + 1 << endl;
                
                for (int k = 0; k < m; k++)
                {
                    if (people[k][j])
                    {
                        people[k][j] = false;
                        d[k]--;
                    }
                }
            }
        }
    }
    
}

int main()
{
    Solution();
    return 0;
}