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