n = gets.chomp.to_i ns = [] (0..n).each{|i| (0..n).each{|j| ns << 2 ** i * 5 ** j } } puts ns.sort