#include <bits/stdc++.h>
using namespace std;
const int N = 30010;
vector<int> E[N];
bool vis[N];
void dfs(int u) {
  vis[u] = true;
  for (int to : E[u]) {
    if (!vis[to]) dfs(to);
  }
  cout << u << " ";
}
int main() {
  int n, m;
  cin >> n >> m;
  int a, b;
  for (int i = 0; i < m; i++) {
    cin >> b >> a;
    E[b].push_back(a);
  }
  for (int i = 1; i <= n; i++)
    if (!vis[i]) {
      dfs(i);
    }
  return 0;
}
