#include <iostream>
#include <vector>
using namespace std;

vector< vector< long long int > > v;
bool f[5001] = {};

void kansu( long long int n ) {

  if ( f[n] == true ) return;

  f[n] = true;

  for ( long long int i = 0; i < v[n].size(); i++ ) {
    kansu( v[n][i] );
  }

  cout << n << endl;

  return;

}

int main() {

  long long int n, m;
  cin >> n >> m;

  for ( long long int i = 0; i <= n; i++ ) {

    vector< long long int > l;
    v.push_back( l );

  }

  for ( long long int i = 0; i < m; i++ ) {

    long long int x, y;
    cin >> x >> y;

    v[y].push_back( x );

  }

  for ( long long int i = 1; i <= n; i++ ) {
    kansu( i );
  }

  return 0;

}