puts [*0..gets.to_i].permutation(2).map{|x,y|2**x*5**y}.sort