#include <bits/stdc++.h>
using namespace std;
const int N = -1;
const int INF = 1.01e9;
int main() {
  int n;
  scanf("%d", &n);
  if (n == 1) {
    cout << "1 1" << endl;
    cout << "1" << endl;
    return 0;
  }
  cout << (n - 1) * 2 << " " << 2 << endl;
  cout << "1 2" << endl;
  return 0;
}
