Skip to content

Instantly share code, notes, and snippets.

@AmanouToona
Created January 17, 2021 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AmanouToona/d4c101443b6aaa4dcfdfa330f81e2c4a to your computer and use it in GitHub Desktop.
Save AmanouToona/d4c101443b6aaa4dcfdfa330f81e2c4a to your computer and use it in GitHub Desktop.
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll S;
cin >> S;
ll INF = pow(10, 9);
int y2 = - S % INF + INF;
int y3 = (S + y2) / INF;
cout << "0 0 1000000000 " << y2 << " 1 " << y3 << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment