#include <bits/stdc++.h>
using namespace std;
int v, e;
list<int> ans;
map<pair<int, int>, int> mp;
void prl() {
  for (auto X : ans) cout << X << " ";
  cout << '\n';
}
void insert(int i) {
  auto it = ans.begin();
  while (it != ans.end()) {
    int to = *it;
    if (mp.find({i, to}) == mp.end()) {
      ans.insert(it, i);
      return;
    } else
      it++;
  }
  ans.insert(it, i);
}
int main() {
  cin >> v >> e;
  for (int i = 0; i < e; i++) {
    int x, y;
    cin >> x >> y;
    mp[{x, y}] = 1;
  }
  for (int i = 1; i < v + 1; i++) {
    insert(i);
  }
  prl();
}
