#include <bits/stdc++.h>
using namespace std;
int n;
int ways[200013];
long long dp[130][20];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  if (n == 1) {
    cout << "1 1" << endl;
    cout << 1 << endl;
    return 0;
  }
  cout << 2 * n - 2 << ' ' << 2 << endl;
  cout << "1 2" << endl;
}
