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 JAVA):

Solution:
import java.io.*;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;

public class B implements Runnable {

  private BufferedReader in;
  private PrintWriter out;
  private StringTokenizer tok = new StringTokenizer("");

  private void init() throws FileNotFoundException {
    try {
      in = new BufferedReader(new FileReader("input.txt"));
      out = new PrintWriter("output.txt");
    } catch (Exception e) {
      in = new BufferedReader(new InputStreamReader(System.in));
      out = new PrintWriter(System.out);
    }
  }

  String readString() {
    while (!tok.hasMoreTokens()) {
      try {
        tok = new StringTokenizer(in.readLine());
      } catch (Exception e) {
        return null;
      }
    }
    return tok.nextToken();
  }

  int readInt() {
    return Integer.parseInt(readString());
  }

  long readLong() {
    return Long.parseLong(readString());
  }

  double readDouble() {
    return Double.parseDouble(readString());
  }

  int[] readIntArray(int size) {
    int[] a = new int[size];
    for (int i = 0; i < size; i++) {
      a[i] = readInt();
    }
    return a;
  }

  public static void main(String[] args) {
    //new Thread(null, new _Solution(), "", 128 * (1L << 20)).start();
    new B().run();
  }

  long timeBegin, timeEnd;

  void time() {
    timeEnd = System.currentTimeMillis();
    System.err.println("Time = " + (timeEnd - timeBegin));
  }

  @Override
  public void run() {
    try {
      timeBegin = System.currentTimeMillis();
      init();
      solve();
      out.close();
      time();
    } catch (Exception e) {
      e.printStackTrace();
      System.exit(-1);
    }
  }

  private int aiverson(boolean good) {
    return good ? 1 : 0;
  }

  double eps = 1e-5;
  static final int MAX = 1_0_00 + 1;

  private void solve() {
    int toFind = readInt() - 1;
    if (toFind > 0) {
      out.println(toFind * 2 + " 2");
      out.print("1 2");
    } else {
      out.println("1 1");
      out.print("1");
    }

    /*int k = 2;
    int[] a = new int[k];
    a[0] = 1;
    a[1] = 2;
    long[][] dp = new long[k + 1][MAX];
    for (int i = 0; i < k + 1; i++) {
      dp[i][0] = 1;
    }
    for (int i = 1; i <= k; i++) {
      for (int sum = 1; sum < MAX; sum++) {
        for (int l = 0; l * a[i - 1] <= sum; l++) {
          dp[i][sum] += dp[i - 1][sum - l * a[i - 1]];
        }
      }
    }
    for (int i = 0; i < MAX; i++) {
      out.println(dp[2][i]);
    }
*/
  }

}