#include <bits/stdc++.h>
using namespace std;
bool isP(int a) {
  if (a == 2 || a == 1) return 1;
  if (a % 2 == 0) return 0;
  for (int i = 3; i <= int(sqrt(a)); i += 2) {
    if (a % i == 0) return 0;
  }
  return 1;
}
int main() {
  int a;
  cin >> a;
  if (a == 1) {
    cout << 1 << " " << 1 << endl << 1 << endl;
  } else {
    cout << (long long)2 * (a - 1) << " " << 2 << endl;
    cout << 1 << " " << 2 << endl;
  }
}
