v#include <bits/stdc++.h>
using namespace std;

int main() {
  int m, n; cin >> m >> n;
  vector<vector<int>> g(m);
  vector<int> cnt(m, 0);
  while (n--) {
    int x, y; cin >> x >> y;
    --x; --y;
    g[x].push_back(y);
    ++cnt[y];
  }
  vector<bool> used(m, false);
  for (int i = 0; i < m; ++i) {
    for (int j = 0; j < m; ++j) {
      if (cnt[j] == 0 && !used[j]) {
        cout << j + 1 << endl;
        used[j] = true;
        for (auto&& x : g[j]) cnt[x] = max(0, cnt[x] - 1);
      }
    }
  }
  return 0;
}

