#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1E9 + 7;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  if (fopen("inp.txt", "r")) {
    freopen("inp.txt", "r", stdin);
    freopen("outp.txt", "w", stdout);
  }
  long long a;
  cin >> a;
  cout << 2 * a - 1 << " " << 2 << endl;
  cout << "1 2";
  return 0;
}
