CF1269A.Equation
普及/提高-
通过率:0%
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
Let's call a positive integer composite if it has at least one divisor other than 1 and itself. For example:
- the following numbers are composite: 1024 , 4 , 6 , 9 ;
- the following numbers are not composite: 13 , 1 , 2 , 3 , 37 .
You are given a positive integer n . Find two composite integers a,b such that a−b=n .
It can be proven that solution always exists.
输入格式
The input contains one integer n ( 1≤n≤107 ): the given integer.
输出格式
Print two composite integers a,b ( 2≤a,b≤109,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