#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  if (a > 1)
    cout << (a - 1) * 2 << " " << 2 << "\n" << 1 << " " << 2 << "\n";
  else
    cout << 1 << " " << 2 << "\n" << 1 << " " << 2 << "\n";
}
