#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long k;
  cin >> k;
  cout << 2 << " " << 3 << endl;
  cout << 131072 + k << " " << 131072 << " " << 0 << endl;
  cout << k << " " << 131072 + k << " " << k << endl;
}
