#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
const int N = 1e6 + 5;
int f[N];
int a[] = {1, 2};
int na = 2;
int main() {
  int cnt;
  cin >> cnt;
  if (cnt == 1) {
    cout << "1 1\n1";
    return 0;
  }
  int x = 1;
  for (int i = 2; i < N; i++) {
    if (i % 2 == 0) x++;
    if (x == cnt) {
      cout << i << " 2\n1 2";
      return 0;
    }
  }
  return 0;
}
