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