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

Number Game

Number Game

Лимит времени 1 секунда
Лимит использования памяти 64 MiB

Vasya, a school whiz kid, feels bored during math classes, so he occasionally plays different games with Petya, a non-achiever who shares a desk with him.

Once, Vasya proposed to play the following game. Petya picks two successive prime numbers, multiplies them and tells the product to Vasya, who is to find out the numbers. First, Vasya had to explain that two primes are successive if there are no other primes between them.

Petya was surprised to see how quickly Vasya figured out the numbers. Then Vasya proposed that they switch roles. Please help Petya to find the chosen numbers.

Write a program to find two successive prime numbers x and y given their product.

Входные данные

The input file contains a single integer, the arithmetical product of x and y (2x < y ≤ 10^6, x, y are successive prime numbers).

Выходные данные

The output file should contain two space-delimited integers x and y, the least of them going first.

Пример

Входные данные #1
15
Выходные данные #1
3 5
Источник 2013-2014 ACM Central Region of Russia Quarterfinal, Rybinsk 2013/10/17