#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
const long long mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int a;
  cin >> a;
  int n, m;
  int d[m];
  if (a == 1) {
    cout << 1 << " " << 1 << endl;
    cout << 1 << endl;
    return 0;
  } else {
    cout << 2 * (a - 1) << " " << 2 << endl;
    cout << "1 2" << endl;
  }
  return 0;
}
