#include<iostream>
#include<cstdio>
#include<algorithm>
#include<vector>
#include<string>
#include<map>
#include<set>
#include<unordered_map>
#include<unordered_set>
#include<list>
#include<queue>
#include<stack>
#include<deque>
#include<stdlib.h>
using namespace std;

vector<int>par[20];
bool s[20];
void saiki(int a) {
	s[a] = true;
	for (int b : par[a]) {
		if (!s[b])saiki(b);
	}
	cout << a+1 << endl;
}
int main() {
	int a, b; cin >> a >> b;
	for (int c = 0; c < b; c++) {
		int d, e; scanf("%d%d", &d, &e);
		d--; e--;
		par[e].push_back(d);
	}
	for (int d = 0; d < a; d++) {
		if (!s[d]) {
			s[d] = true;
			saiki(d);
		}
	}
}