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