Problem: 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 ≤ 105), the desired number of ways.

Output

In the first line print integers N and M (1 ≤ N ≤ 106, 1 ≤ M ≤ 10), the amount of change to be made, and the number of denominations, respectively.

Then print M integers D1, D2, ..., DM (1 ≤ Di ≤ 106), the denominations of the coins. All denominations must be distinct: for any i ≠ j we must have Di ≠ Dj.

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

Examples

Input

18


Output

30 4
1 5 10 25


Input

3


Output

20 2
5 2


Input

314


Output

183 4
6 5 2 139

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
class mstream {
 private:
  int res = 0;
  bool right = 0, sign = 0, space = 0, zero = 0;
  int width = 0, precision = 0, maxwidth = 1e6;
  string interval = "";
  const char* formstr(bool ri, bool si, bool sp, bool ze, bool wi, bool pr,
                      string ty) {
    string f = "%";
    if (ri && right) f += "-";
    if (si && sign) f += "+";
    if (sp && space) f += " ";
    if (ze && zero) f += "0";
    if (wi) f += "*";
    if (pr) f += ".*";
    f += ty;
    f += "%s";
    return f.c_str();
  }

 public:
  operator int() { return res; }
  mstream() {}
  mstream operator()() {
    res = 0;
    return *this;
  }
  mstream setright(bool n = 1) {
    right = n;
    return *this;
  }
  mstream setleft(bool n = 1) {
    right = !n;
    return *this;
  }
  mstream setsign(bool n = 1) {
    sign = n;
    return *this;
  }
  mstream notsign(bool n = 1) {
    sign = !n;
    return *this;
  }
  mstream setspace(bool n = 1) {
    space = n;
    return *this;
  }
  mstream notspace(bool n = 1) {
    space = !n;
    return *this;
  }
  mstream setzero(bool n = 1) {
    zero = n;
    return *this;
  }
  mstream notzero(bool n = 1) {
    zero = !n;
    return *this;
  }
  mstream setwidth(int n = 0) {
    width = n;
    return *this;
  }
  mstream setprecision(int n = 6) {
    precision = n;
    return *this;
  }
  mstream setmaxwidth(int n = 1e6) {
    maxwidth = n;
    return *this;
  }
  mstream setinterval(string n = " ") {
    interval = n;
    return *this;
  }
  mstream notinterval(string n = "") {
    interval = n;
    return *this;
  }
  mstream operator>>(int& x) {
    int r = scanf("%d", &x);
    if (r != EOF) res += r;
    return *this;
  }
  mstream operator>>(long long& x) {
    int r = scanf("%I64d", &x);
    if (r != EOF) res += r;
    return *this;
  }
  mstream operator>>(float& x) {
    int r = scanf("%f", &x);
    if (r != EOF) res += r;
    return *this;
  }
  mstream operator>>(double& x) {
    int r = scanf("%lf", &x);
    if (r != EOF) res += r;
    return *this;
  }
  mstream operator>>(char& x) {
    int r = scanf("%c", &x);
    if (r != EOF) res += r;
    return *this;
  }
  mstream operator>>(string& x) {
    char s[maxwidth + 1];
    int r = scanf("%s", s);
    if (r != EOF) x = s, res += r;
    return *this;
  }
  mstream operator<<(int x) {
    int r = printf(formstr(1, 1, 1, 1, 1, 0, "d"), width, x, interval.c_str());
    if (r > 0) res += r;
    return *this;
  }
  mstream operator<<(long long x) {
    int r =
        printf(formstr(1, 1, 1, 1, 1, 0, "I64d"), width, x, interval.c_str());
    if (r > 0) res += r;
    return *this;
  }
  mstream operator<<(float x) {
    int r = printf(formstr(1, 1, 1, 1, 1, 1, "f"), width, precision, x,
                   interval.c_str());
    if (r > 0) res += r;
    return *this;
  }
  mstream operator<<(double x) {
    int r = printf(formstr(1, 1, 1, 1, 1, 1, "lf"), width, precision, x,
                   interval.c_str());
    if (r > 0) res += r;
    return *this;
  }
  mstream operator<<(char x) {
    int r = printf(formstr(1, 0, 0, 1, 1, 0, "c"), width, x, interval.c_str());
    if (r > 0) res += r;
    return *this;
  }
  mstream operator<<(string x) {
    int r = printf(formstr(1, 0, 0, 1, 1, 1, "s"), width, maxwidth, x.c_str(),
                   interval.c_str());
    if (r > 0) res += r;
    return *this;
  }
};
mstream mstr = mstream();
int main() {
  int a;
  mstr >> a;
  int n = (a == 1) ? 1 : (2 * a - 2);
  mstr << n << " 2\n1 2\n";
}