Codeforces Round 268 (Div. 2)
E
Hack it!
Codeforces
未评级
原题
← D→
翻译中…

Little X has met the following problem recently.

翻译中…

Let's define $*f*(*x*)$ as the sum of digits in decimal representation of number $*x*$ (for example, $*f*(1234) = 1 + 2 + 3 + 4$). You are to calculate image

翻译中…

Of course Little X has solved this problem quickly, has locked it, and then has tried to hack others. He has seen the following C++ code:

翻译中…

    ans = solve(l, r) % a;
    if (ans <= 0)
      ans += a;

翻译中…

This code will fail only on the test with

翻译中…

image

翻译中…

. You are given number

翻译中…

a

翻译中…

, help Little X to find a proper test for hack.

翻译中…

Input

翻译中…

The first line contains a single integer $*a* (1 ≤ *a* ≤ 10^{18})$.

翻译中…

Output

翻译中…

Print two integers: $*l*, *r* (1 ≤ *l* ≤ *r* < 10^{200})$ — the required test data. Leading zeros aren't allowed. It's guaranteed that the solution exists.

翻译中…

样例

Input #1
46
Output #1
1 10
InputCopy OutputCopy
Input #2
126444381000032
Output #2
2333333 2333333333333
InputCopy OutputCopy
题目信息
题号
469E
时间限制
1 s
内存限制
256 MB

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