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