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