#include <bits/stdc++.h>   using namespace std;   const long long maxn = (int)1e6;   long long n, m, a;   int main() {     cin >> a;     if (a == 1) {       cout <<  1 1  n 1 ;       return 0;     }     cout << (a - 1) * 2 <<     << 2 <<   n ;     cout <<  1 2 ;   }   