#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int EPS = 1e-8;
void __init__() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  __init__();
  int a;
  cin >> a;
  if (a == 1) {
    cout << "1 1" << endl;
    cout << 1;
  } else {
    cout << (a - 1) * 4 << " " << 2 << endl;
    cout << "2 4";
  }
  return 0;
}
