#include <bits/stdc++.h>
using namespace std;
int arr[(int)1e6];
int n;
int main() {
  ios::sync_with_stdio(0);
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  for (int i = 1; i <= (int)1e6; i++) {
    arr[i] = (i / 2) + 1;
  }
  cin >> n;
  for (int i = 1; i <= (int)1e6; i++) {
    if (arr[i] == n) {
      cout << i << " " << 2 << endl;
      break;
    }
  }
  cout << 1 << " " << 2 << endl;
  return 0;
}
