N = gets.to_i puts (0..N).map{|i| (0..N).map{|j| 2**i * 5**j } }.flatten.sort