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