def prime_factorization(num)
  prime_factor = 2
  arr = []

  until num == 1
    if num % prime_factor == 0
      arr << prime_factor

      num /= prime_factor
    else
      prime_factor += 1
    end
  end

  arr
end

n = gets.to_i

puts "#{n}: #{prime_factorization(n).join(' ')}"