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