m=gets.to_i
n=gets.to_i
e=Array.new(m+1){[]}
n.times do
  x,y=gets.split.map &:to_i
  e[x]<< y
end
r=[2]
while r.size<m
  1.upto(m) do |i|
    next if r.include? i
    catch(:a){
      e[i].each do |j|
        throw :a if !r.include? j
      end
      r<< i
    }
  end
end
puts r.reverse