CF1269A.Equation

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Equation

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.

Input

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

Output

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.

Samples

1
9 8
512
4608 4096

在线编程 IDE

建议全屏模式获得最佳体验