#include <bits/stdc++.h>
using namespace std;
vector<int> V[50000];
bool adambol[50000];
void dfska(int c) {
  if (adambol[c]) {
    return;
  }
  adambol[c] = 1;
  for (int i = 0; i < V[c].size(); ++i) {
    dfska(V[c][i]);
  }
  cout << c << " ";
}
int main() {
  ios_base::sync_with_stdio(0);
  int n, m, u, v;
  cin >> n >> m;
  for (int i = 0; i < m; ++i) {
    cin >> u >> v;
    V[u].push_back(v);
  }
  memset(adambol, 0, sizeof adambol);
  for (int i = 1; i < n + 1; ++i) {
    if (!adambol[i]) {
      dfska(i);
    }
  }
  cout << "\n";
}
