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.IOException;
import java.io.PrintWriter;
import java.util.*;
import java.io.*;

public class Main {
    double eps = 0.0000001;

    public class point implements Comparable<point> {
        double x, y;

        public int compareTo(point a) {
            int z = 0;
            if (x + eps > a.x) {
                z = 1;
            } else {
                if (x < a.x + eps) {
                    z = -1;
                } else {
                    if (y + eps > a.y) {
                        z = 1;
                    } else {
                        if (y < a.y + eps) {
                            z = -1;
                        }
                    }
                }
            }
            return z;
        }

        point(int a, int b) {
            x = a;
            y = b;
        }
    }

    public class otr {
        point l, r;

        otr(point a, point b) {
            l = a;
            r = b;
        }
    }

    public class line {
        double a, b, c;

        line(point a1, point a2) {
            a = a2.y - a1.y;
            b = a2.x - a1.x;
            c = a2.x * a1.y - a1.x * a2.y;
        }
    }

    boolean parr(line l1, line l2) {
        if (Math.abs(l1.b * l2.a - l2.b * l1.a) < eps) {
            return true;
        }
        return false;
    }

    boolean persotr(otr a1, otr a2) {
        line l1 = new line(a1.l, a1.r);
        line l2 = new line(a2.l, a2.r);
        if (parr(l1, l2)) return false;
        point x = pers(l1, l2);
        if (x.x > a1.l.x - eps && x.x < a1.r.x + eps && x.x > a2.l.x - eps && x.x < a2.r.x + eps) {
            return true;
        }
        return false;
    }

    point pers(line l1, line l2) {
        point res = new point(0, 0);
        res.y = (l2.c * l1.a - l1.c * l2.a) / (l1.b * l2.a - l2.b * l1.a);
        res.x = -(l2.c * l1.b - l1.c * l2.b) / (l1.b * l2.a - l2.b * l1.a);
        return res;
    }

    public void solve() throws IOException {
        int n = nextInt();
        if (n != 1) {
            out.println((2 * n - 2) + " " + 2);
            out.print(1 + " " + 2);
        }else {
            out.println(1 + " " + 1);
            out.print(1);
        }
    }


    BufferedReader br;
    StringTokenizer sc;
    PrintWriter out;

    public String nextToken() throws IOException {
        while (sc == null || !sc.hasMoreTokens()) {
            try {
                sc = new StringTokenizer(br.readLine());
            } catch (Exception e) {
                return null;
            }
        }
        return sc.nextToken();
    }

    public boolean hasNext() throws IOException {
        while (sc == null || !sc.hasMoreTokens()) {
            try {
                sc = new StringTokenizer(br.readLine());
            } catch (Exception e) {
                return false;
            }
        }
        return true;
    }

    public Integer nextInt() throws IOException {
        return Integer.parseInt(nextToken());
    }

    public Long nextLong() throws IOException {
        return Long.parseLong(nextToken());
    }

    public Double nextDouble() throws IOException {
        return Double.parseDouble(nextToken());
    }

    public static void main(String[] args) throws IOException {
        try {
            Locale.setDefault(Locale.US);
        } catch (Exception e) {
        }
        new Main().run();
    }

    public void run() {
        try {
            br = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
//            br = new BufferedReader(new FileReader("shooting.in"));
//            out = new PrintWriter(new File("shooting.out"));
            solve();
            out.close();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(1);
        }
    }
}