#include <bits/stdc++.h>
using namespace std;
map<int, vector<int>> g;
vector<int> v;
void dfs(int n) {
  if (v[n]) return;
  v[n] = 1;
  for (auto it : g[n])
    if (!v[it]) dfs(it);
  cout << n << " ";
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, m, a, b;
  cin >> n >> m;
  while (m--) cin >> a >> b, g[a].push_back(b);
  v.assign(n + 1, 0);
  for (int i = 1; i <= n; i++)
    if (!v[i]) dfs(i);
}
