#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int MAXN = 200010;
const long long MOD = 998244353;
int main() {
  int n;
  scanf("%d", &n);
  if (n == 1)
    printf("1 2\n");
  else
    printf("%d 2\n", (n - 1) * 2);
  printf("1 2\n");
}
