Codeforces Round 387 (Div. 2)
A
Display Size
Codeforces
800
原题
←B →
翻译中…

A big company decided to launch a new series of rectangular displays, and decided that the display must have exactly $*n*$ pixels.

翻译中…

Your task is to determine the size of the rectangular display — the number of lines (rows) of pixels $*a*$ and the number of columns of pixels $*b*$, so that:

翻译中…
  • there are exactly $*n*$ pixels on the display;
  • the number of rows does not exceed the number of columns, it means $*a* ≤ *b*$;
  • the difference $*b* - *a*$ is as small as possible.
翻译中…

Input

翻译中…

The first line contains the positive integer $*n*$ ($1 ≤ *n* ≤ 10^{6}$) — the number of pixels display should have.

翻译中…

Output

翻译中…

Print two integers — the number of rows and columns on the display.

翻译中…

Note

翻译中…

In the first example the minimum possible difference equals 2, so on the display should be 2 rows of 4 pixels.

翻译中…

In the second example the minimum possible difference equals 0, so on the display should be 8 rows of 8 pixels.

翻译中…

In the third example the minimum possible difference equals 4, so on the display should be 1 row of 5 pixels.

翻译中…

样例

Input #1
8
Output #1
2 4
InputCopy OutputCopy
Input #2
64
Output #2
8 8
InputCopy OutputCopy
Input #3
5
Output #3
1 5
InputCopy OutputCopy
Input #4
999999
Output #4
999 1001
InputCopy OutputCopy
题目信息
题号
747A
时间限制
1 s
内存限制
256 MB
标签
暴力
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。