#include<iostream>
#include<vector>

using namespace std;

int main() {
	int n, m;
	cin >> m >> n;
	vector<int> per;
	vector<vector<int> > G;
	G.resize(m);
	bool used[m];
	per.resize(m);
	for (int i = 0; i < m; i++)
		per[i] = 0, used[i] = false;
	for (int i = 0; i < n; i++) {
		int x, y;
		cin >> x >> y;
		x--, y--;
		per[y]++;
		G[x].push_back(y);
	}
	used[1] = true;
	for (int i = 0; i < m; i++) {
		for (int j = 0; j < m; j++) {
			if (used[j])
				continue;
			if (!per[j]) {
				used[j] = true;
				cout << j + 1 << endl;
				for (int k = 0; k < G[j].size(); k++)
					per[G[j][k]]--;
			}
		}
	}

	cout << 2 << endl;
	return 0;
}