#include <bits/stdc++.h>
using namespace std;
int dp[1000000];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int a;
  cin >> a;
  if (a == 1) {
    cout << 1 << " ";
  } else {
    cout << 2 * (a - 1) << " ";
  }
  cout << 2 << endl;
  cout << 1 << " " << 2;
}
