N = gets.to_i n = 10**N lis = [] 64.times do |i| a = 2**i b = 1 while (n == n/a/b*a*b) lis << a*b b *= 5 end end puts lis.sort*"\n"