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