#include <bits/stdc++.h>

using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)

int main() {
	bool path[20][20] = {};
	int m, n;
	cin >> m >> n;
	REP(i, n) {
		int a, b;
		scanf("%d %d", &a, &b);
		a--; b--;
		path[a][b] = true;
	}
	
	
	bool s[20] = {};
	s[1] = true;
	REP(i, m - 1) {
		int ans;
		
		REP(j, m) if (!s[j]) {
			bool f = true;
			REP(k, m) if (path[k][j]) f = false;
			if (f) {
				ans = j;
				REP(k, m) path[j][k] = false;
				s[ans] = true;
				break;
			}
		}
		printf("%d\n", ans + 1);
	}
	puts("2");
	
	return 0;
}