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