#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int SIZE = 1e6 + 10;
vector<vector<int>> g;
vector<char> used;
void dfs(int v) {
  used[v] = 1;
  for (int i = 0; i < (g[v].size()); ++i) {
    int to = g[v][i];
    if (!used[to]) {
      dfs(to);
    }
  }
  cout << v + 1 << " ";
}
int main() {
  int n = 0;
  int m = 0;
  cin >> n >> m;
  g.resize(n);
  used.resize(n);
  for (int i = 0; i < (m); ++i) {
    int a, b;
    cin >> a >> b;
    a--, b--;
    g[a].push_back(b);
  }
  for (int i = 0; i < (n); ++i) {
    if (!used[i]) {
      dfs(i);
    }
  }
  return 0;
}
