# n = gets.to_i
# out = "#{n.to_s}:"
#
# while n % 2 == 0
#   out += " 2"
#   n /= 2
# end
#
# i = 3
# while n != 1 and i * i <= n
#   while n % i == 0
#     out += " #{i.to_s}"
#     n /= i
#   end
#   i += 2
# end
#
# if n != 1
#   out += " #{n}"
# end
#
# puts out

require 'prime'
n = gets.to_i

puts "#{n}:" + Prime.prime_division(n).map{|a,b| " #{a}"*b}.join("")

