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