Given an integer ( S ), your task is to find a combination of six integers ( X_1, Y_1, X_2, Y_2, X_3, ) and ( Y_3 ) that satisfy the following conditions:
( 0 \leq X_1, Y_1, X_2, Y_2, X_3, Y_3 \leq 10^9 )
The area of the triangle in a two-dimensional plane formed by the vertices ( (X_1, Y_1) ), ( (X_2, Y_2) ), and ( (X_3, Y_3) ) should be equal to ( S / 2 ).
It is guaranteed that such six integers always exist under the given constraints.
Input Format
A single integer ( S ) (where ( 0 \leq S \leq 10^{18} ))
Output Format
Six integers ( X_1, Y_1, X_2, Y_2, X_3, Y_3 ) (in that order), separated by spaces.
Examples
Example 1
Input:
text
4
Output:
text
0 0 2 0 0 2
Example 2
Input:
text
10
Output:
text
0 0 5 0 0 5
Notes
The output integers must satisfy the condition for forming a triangle with the specified area.
The area of a triangle can be calculated using the formula:
[
\text{Area} = \frac{1}{2} | X_1(Y_2 - Y_3) + X_2(Y_3 - Y_1) + X_3(Y_1 - Y_2) |
]
Implementation
Your solution should be placed in the /app/ directory of your project.
Constraints
Ensure that the produced integer values lie within the specified range of ( 0 ) to ( 10^9 ).