ÀÂÒ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

1256. Number Game

Time Limit: 1 seconds
Memory Limit:65536KB
Points:100
View Problem Statistics Submit Problem added debug

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.

Limitations

2 ≤ x < y ≤ 106; x, y are successive prime numbers.

Input

The input file contains a single integer, the arithmetical product of x and y.

Output

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

Example

Input

Output

15

3 5

Input

Output

35

5 7

Input

Output

77

7 11

 

All Rybinsk-2013 problems

View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / World Championship in Programming (ICPC) / Rybinsk-2013 /
1255. D - Blobs' Exhibition 1256. 1257. F - Evil & Odious 1258. G - Checkers 1259. H - Redirect
time generating 0.157 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.