#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, q;
  cin >> n;
  q = (n - 1) * 2;
  if (q == 0) {
    cout << 1 << " " << 1 << endl << 1 << endl;
  } else {
    cout << q << " " << 2 << endl;
    cout << 1 << " " << 2 << endl;
  }
  return 0;
}
