m = gets.chomp.to_i
n = gets.chomp.to_i

$g = {}

$has_prev = []
$all = (1..m).to_a
$reverse = {}

n.times do
  s, t = gets.chomp.split(' ').map(&:to_i)
  $g[s] ||= []
  $g[s] << t
  $has_prev << t

  $reverse[t] ||= []
  $reverse[t] << s
end

$free = $all - $has_prev

$res = []

until $free.empty?
  current = $free.pop
  $res << current

  next unless $g[current]

  $g[current].each do |p|
    $reverse[p].delete(current)
    $free << p if $reverse[p].empty?
  end
end

puts $res

