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