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