Skip to content

Instantly share code, notes, and snippets.

@AmanouToona
Created January 17, 2021 09:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save AmanouToona/22225c750825c5bf2482882859950d3c 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) % 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