#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;

bool used[20];
vector<int> order;
vector<vector<int> > es;

int dfs(int v) {
	used[v] = true;
	for(int i = 0; i < (int)es[v].size(); ++i)
		if(!used[es[v][i]])
			dfs(es[v][i]);

	order.push_back(v);
}

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	int n, m;
	cin >> n >> m;

	es.resize(n + 1);
	for(int i = 0; i < m; ++i) {
		int x, y;
		cin >> x >> y;
		es[x].push_back(y);
	}

	memset(used, false, sizeof(used));
	for(int i = 1; i <= n; ++i)
		if(!used[i])
			dfs(i);

	for(int i = n - 1; i >= 0; --i)
		cout << order[i] << endl;

	return EXIT_SUCCESS;
}