CF1269A.Equation

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

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

  • the following numbers are composite: 10241024 , 44 , 66 , 99 ;
  • the following numbers are not composite: 1313 , 11 , 22 , 33 , 3737 .

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

It can be proven that solution always exists.

输入格式

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

输出格式

Print two composite integers a,ba,b ( 2a,b109,ab=n2 \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.

输入输出样例

  • 输入#1

    1
    

    输出#1

    9 8
    
  • 输入#2

    512
    

    输出#2

    4608 4096
    
首页