#include <bits/stdc++.h>
using namespace std;
void solve() {
  int a;
  cin >> a;
  int c = 2 * (a - 1);
  cout << (c == 0 ? 1 : c) << " " << 2 << endl;
  cout << 1 << " " << 2 << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int t = 1;
  while (t--) {
    solve();
  }
}
