#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
  ios::sync_with_stdio(0); cin.tie(0);
  ll s;
  cin >> s;
  ll b = 1e9;
  ll x = (s+b-1)/b, y = x*b-s;
  cout << 0 << ' ' << 0 << ' ' << 1 << ' ' << x << ' ' << b << ' ' << y << endl;
}
