#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  while (scanf("%d", &a) != EOF) {
    int n = 1;
    while (1) {
      if (n / 2 + 1 == a) {
        printf("%d 2\n1 2\n", n);
        break;
      }
      n++;
    }
  }
}
