#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;

vector<int>v[30], ans;
bool flag[30];

int main() {
	int m, n;scanf("%d%d", &m, &n);
	rep(i, n) {
		int x, y; scanf("%d%d", &x, &y);
		x--; y--;
		v[y].push_back(x);
	}
	while (1) {
		if (ans.size() == m)break;
		rep(i, m) {
			bool ok = true;
			for (int j : v[i])if(!flag[j])ok = false;
			if (ok && !flag[i]) {
				flag[i] = true;
				ans.push_back(i + 1);
			}
		}
	}
	for (int i : ans) {
		cout << i << endl;
	}
}