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