#include <bits/stdc++.h>
using namespace std;
const int maxN = 3e4 + 10;
int n, m;
vector<int> adj[maxN];
bool vis[maxN];
void dfs(int v) {
  vis[v] = 1;
  for (long long i = 0; i < adj[v].size(); i++)
    if (!vis[adj[v][i]]) dfs(adj[v][i]);
  cout << v << " ";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n >> m;
  for (long long i = 0; i < m; i++) {
    int x, y;
    cin >> x >> y;
    adj[x].push_back(y);
  }
  for (long long i = 1; i <= n; i++)
    if (!vis[i]) dfs(i);
  return 0;
}
