#include <bits/stdc++.h>
using namespace std;
const int maxix = 3 * 1000 * 10 + 100;
vector<int> a[maxix];
multimap<int, int> mp;
multimap<int, int>::iterator it;
set<int> vertex;
set<int>::iterator itset;
int mark[maxix];
void dfs(int v) {
  mark[v] = 1;
  for (auto u : a[v]) {
    if (mark[u] == 0) dfs(u);
  }
  cout << v << " ";
}
int main() {
  int n, m;
  cin >> n >> m;
  int x, y;
  for (int i = 1; i <= m; i++) {
    cin >> x >> y;
    a[x].push_back(y);
  }
  for (int j = n; j >= 1; j--) {
    if (mark[j] == 0) dfs(j);
  }
  return 0;
}
