#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <cstdlib>

#define REP(i,k,n) for(int i=0;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)
#define pb push_back
#define mp make_pair

using namespace std;

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

	int a[21];
	memset(a,0,sizeof(a));

	bool b[21];
	rep(i,21) b[i] = true;

	vector<vector<int> > v(21);

	rep(i,m)
	{
		int x,y;
		cin >> x >> y;

		x--;
		y--;
		a[y]++;
		v[x].pb(y);
	}

	int count = 0;
	while(count != n)
	{
		rep(i,n)
		{
			if(a[i] == 0 && b[i])
			{
				cout << i+1 << endl;
				b[i] = false;
				count++;

				rep(j,v[i].size()) a[v[i][j]]--;
			}
		}
	}

	return 0;
}