#include <bits/stdc++.h>
using namespace std;
const int INF = (int)1e9;
const int mod = (int)1e9 + 7;
const int MAX = (int)1e5 + 5;
void build() { return; }
int n;
void Init() {
  scanf("%d", &n);
  return;
}
void sol() {
  int m = (n - 1) * 2 + 1;
  printf("%d 2\n1 2", m);
  return;
}
int main(void) {
  Init();
  build();
  sol();
  return 0;
}
