#include <bits/stdc++.h>
using namespace std;
long long int mod = 1000000007;
vector<int> adj[30005];
vector<int> ans;
int vis[30005] = {0};
void dfs(int s) {
  vis[s] = 2;
  for (auto i : adj[s]) {
    if (vis[i] == 0) dfs(i);
    if (vis[s] == 1) continue;
  }
  ans.push_back(s);
  vis[s] = 1;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, m;
  cin >> n >> m;
  int x, y;
  int cnt[300005] = {0};
  for (int i = 0; i < m; i++) {
    cin >> x >> y;
    cnt[x]++;
    adj[y].push_back(x);
  }
  for (int i = 1; i <= n; i++) {
    if (vis[i] == 0) dfs(i);
  }
  for (int i = n - 1; i >= 0; i--) cout << ans[i] << " ";
  return 0;
}
