m = gets.to_i
n = gets.to_i
vertex = (0...m).to_a
outEdge = Array.new(m){Array.new}
inDegree = Array.new(m, 0)
n.times do
  x, y = gets.split.map{|v|v.to_i-1}
  outEdge[x].push(y)
  inDegree[y] += 1
end
while vertex.size > 0 do
  x = inDegree.index(0)
  inDegree[x] = -1
  outEdge[x].each do |y|
    inDegree[y] -= 1
  end
  vertex.delete(x)
  p x+1
end