#include <bits/stdc++.h>
using namespace std;
vector<int> a[3 * 100 * 100 + 100];
vector<int> ans;
bool visited[3 * 100 * 100 + 100];
void dfs(int v) {
  visited[v] = true;
  for (auto u : a[v]) {
    if (!visited[u]) dfs(u);
  }
  cout << v << " ";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < m; i++) {
    int x, y;
    cin >> x >> y;
    a[x].push_back(y);
  }
  for (int i = 1; i <= n; i++) {
    if (!visited[i]) dfs(i);
  }
}
