#include<iostream>
#include<vector>

using namespace std;

int main()
{
  int n,m;
  cin >> m >> n;
  cerr << m << " " << n << endl;
  vector<int> per;
  vector<vector<int> > G;
  G.resize(m);
  bool used[m]; 
  per.resize(m);
  for(int i=0;i<m;i++)
    per[i] = 0,used[i] = false;
  for(int i=0;i<n;i++)
    {
      int x,y;
      cin >> x >> y;
      cerr << x << " "  << y << endl;
      x--,y--;
      per[y]++;
      G[x].push_back(y);
    }
  
  
  
  for(int i=0;i<n;i++)
    {
      for(int j=0;j<n;j++)
	{
	  if(used[j])
	    continue;
	  if(!per[j])
	    {
	      cout << j+1 << endl;
	      used[j] = true;
	      for(int k=0;k<G[j].size();k++)
		per[G[j][k]]--;
	      break;
	    }
	}
    }
  return 0;
}