#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  int n, m;
  cin >> n >> m;
  vector<pair<int, int> > v(m);
  for (int(i) = (0); (i) < (m); (i)++) cin >> v[i].second >> v[i].first;
  set<pair<int, int> > S;
  for (int(i) = (0); (i) < (m); (i)++) S.insert(v[i]);
  vector<int> ans(n);
  for (int(i) = (0); (i) < (n); (i)++) {
    ans[i] = i + 1;
    int j = i;
    while (j) {
      pair<int, int> key = make_pair(ans[j], ans[j - 1]);
      if (S.find(key) == S.end()) break;
      swap(ans[j - 1], ans[j]);
      j--;
    }
  }
  for (int(i) = (0); (i) < (n); (i)++) {
    if (i) cout << " ";
    cout << ans[i];
  }
  cout << '\n';
  return 0;
}
