n = gets.to_i a = [] (0..n).each do |i| (0..n).each do |j| a << 2**i * 5**j end end puts a.sort.uniq