Codeforces Round 437 (Div. 2, based on MemSQL Start[c]UP 3.0 - Round 2)
B
Save the problem!
Codeforces
未评级
原题
← AC →
翻译中…

Attention: we lost all the test cases for this problem, so instead of solving the problem, we need you to generate test cases. We're going to give you the answer, and you need to print a test case that produces the given answer. The original problem is in the following paragraph.

翻译中…

People don't use cash as often as they used to. Having a credit card solves some of the hassles of cash, such as having to receive change when you can't form the exact amount of money needed to purchase an item. Typically cashiers will give you as few coins as possible in change, but they don't have to. For example, if your change is 30 cents, a cashier could give you a 5 cent piece and a 25 cent piece, or they could give you three 10 cent pieces, or ten 1 cent pieces, two 5 cent pieces, and one 10 cent piece. Altogether there are 18 different ways to make 30 cents using only 1 cent pieces, 5 cent pieces, 10 cent pieces, and 25 cent pieces. Two ways are considered different if they contain a different number of at least one type of coin. Given the denominations of the coins and an amount of change to be made, how many different ways are there to make change?

翻译中…

As we mentioned before, we lost all the test cases for this problem, so we're actually going to give you the number of ways, and want you to produce a test case for which the number of ways is the given number. There could be many ways to achieve this (we guarantee there's always at least one), so you can print any, as long as it meets the constraints described below.

翻译中…

Input

翻译中…

Input will consist of a single integer $*A*$ $(1 ≤ *A* ≤ 10^{5})$, the desired number of ways.

翻译中…

Output

翻译中…

In the first line print integers $*N*$ and $*M*$ $(1 ≤ *N* ≤ 10^{6}, 1 ≤ *M* ≤ 10)$, the amount of change to be made, and the number of denominations, respectively.

翻译中…

Then print $*M*$ integers $*D*_{1}, *D*_{2}, ..., *D*_{*M*}$ $(1 ≤ *D*_{*i*} ≤ 10^{6})$, the denominations of the coins. All denominations must be distinct: for any $*i* ≠ *j*$ we must have $*D*_{*i*} ≠ *D*_{*j*}$.

翻译中…

If there are multiple tests, print any of them. You can print denominations in atbitrary order.

翻译中…

样例

Input #1
18
Output #1
30 4
1 5 10 25
InputCopy OutputCopy
Input #2
3
Output #2
20 2
5 2
InputCopy OutputCopy
Input #3
314
Output #3
183 4
6 5 2 139
InputCopy OutputCopy
题目信息
题号
867B
时间限制
2 s
内存限制
256 MB

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