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