eolymp
bolt
Попробуйте наш новый интерфейс для отправки задач
Задачи

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.

Input

The first line contains a single positive integer number n (1n109).

Output

In the first line print the maximum possible number k of different factors in the representation of n. In the second line print k factors in increasing order.

Лимит времени 1 секунда
Лимит использования памяти 256 MiB
Входные данные #1
4
Выходные данные #1
2
1 4
Источник Yandex.Algorithm, Test Round, 27/06/2013