#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n;
  cin >> n;
  if (n != 1) {
    cout << (n - 1) * 2 << " "
         << "2" << endl;
    cout << "1"
         << " "
         << "2" << endl;
  } else {
    cout << "1"
         << " "
         << "1" << endl;
    cout << "1" << endl;
  }
}
