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