#include <iostream>
#include <vector>

using namespace std;

bool e[21][21];

void solve()
{
	int n, m;
	cin >> m >> n;
	vector<int> in(m + 1);
	for (int i = 0; i < n; ++i)
	{
		int x, y;
		cin >> x >> y;
		e[y][x] = true;
		in[y]++;
	}
	for (int i = 0; i < m; ++i)
	{
		for (int j = 1; j <= m; ++j)
		{
			if (i != m - 1 && j == 2)
			{
				continue;
			}
			if (in[j] == 0)
			{
				cout << j << endl;
				in[j] = -1;
				for (int k = 1; k <= m; ++k)
				{
					if (e[k][j])
					{
						in[k]--;
					}
				}
			}
		}
	}
}

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