#include <bits/stdc++.h>
using namespace std;
const int N = 1000010, mod = 1e9 + 7, INF = 1 << 17;
const double eps = 1e-6;
int k;
int main() {
  cin >> k;
  cout << "2 3" << endl;
  cout << INF + k << ' ' << k << ' ' << INF << endl;
  cout << INF << ' ' << INF + k << ' ' << k;
  return 0;
}
