eolymp
bolt
Try our new interface for solving problems
Məsələlər

Product of Different

Product of Different

In this problem you are asked to represent a positive integer number n as a multiplication of as many different positive integer factors as possible. \InputFile The first line of the input le contains a single positive integer number \textbf{n} (\textbf{1} ≤ \textbf{n} ≤ \textbf{1000000000}). \OutputFile In the first line on the output file, print the maximum possible number of different factors in the representation of \textbf{n}. In the second line, print \textbf{k} factors in any order separated by spaces. If there are multiple possible factorizations, output any of them.
Zaman məhdudiyyəti 1 saniyə
Yaddaşı istafadə məhdudiyyəti 256 MiB
Giriş verilənləri #1
4
Çıxış verilənləri #1
2
1 4
Mənbə Yandex.Algorithm, Test Round, 27/06/2013