#!/usr/bin/env ruby

require 'prime'

n = gets().chomp().to_i()



print "#{n}:"
if Prime.prime?(n) then
  print " #{n}"
else
  Prime.each(n).each do|i|
    loop do
      if n % i == 0 then
        print " #{i}"
        n = n/i
      else
        break
      end
    end
    if i > n then
      break
    end
  end
end
puts ""
