Codeforces Round 609 (Div. 2)
翻译中…
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.
翻译中…
Input
翻译中…
The input contains one integer $n$ ($1 \leq n \leq 10^7$): the given integer.
翻译中…
Output
翻译中…
Print two composite integers $a,b$ ($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.
翻译中…
样例
Input #1
1
Output #1
9 8
InputCopy
OutputCopy
Input #2
512
Output #2
4608 4096
InputCopy
OutputCopy
题目信息
标签
暴力
数学
题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。