#include <bits/stdc++.h>
using namespace std;
int vis[30005];
int a[30005];
vector<int> g[30005];
int main() {
  int i, j, n, m, p;
  cin >> n >> m;
  for (i = 0; i < m; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    g[y].push_back(x);
  }
  a[1] = 1;
  for (i = 2; i <= n; i++) {
    p = g[i].size();
    for (j = 0; j < p; j++) {
      vis[g[i][j]] = 1;
    }
    a[i] = i;
    p = i;
    while (p > 1 && vis[a[p - 1]]) {
      int x = a[p];
      a[p] = a[p - 1];
      a[p - 1] = x;
      p--;
    }
    p = g[i].size();
    for (j = 0; j < p; j++) {
      vis[g[i][j]] = 0;
    }
  }
  for (i = 1; i <= n; i++) printf("%d ", a[i]);
}
