#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  cout << 2 * n - 1 << " " << 2 << endl;
  cout << 1 << " " << 2 << endl;
  return 0;
}
