XHXMMMl37UFZWg#?[_*

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Statement

Let's call a positive integer composite if it has at least one divisor other than 1 1 and itself. For example:

  • the following numbers are composite: 1024 1024 , 4 4 , 6 6 , 9 9 ;
  • the following numbers are not composite: 13 13 , 1 1 , 2 2 , 3 3 , 37 37 .

You are given a positive integer n n . Find two composite integers a,b a,b such that ab=n a-b=n .

It can be proven that solution always exists.

Format

Input

The input contains one integer n n ( 1n107 1 \leq n \leq 10^7 ): the given integer.

Output

Print two composite integers a,b a,b ( 2a,b109,ab=n 2 \leq a, b \leq 10^9, a-b=n ).

It can be proven, that solution always exists.

If there are several possible solutions, you can print any.

Sample

1
9 8
512
4608 4096

ShanghaiTech ACM 炸鱼杯

未参加
状态
已结束
规则
OI
题目
46
开始于
2024-12-10 23:00
结束于
2024-12-15 13:00
持续时间
110 小时
主持人
参赛人数
112