Parallel lines
Medium
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Find the lines that are parallel to the given and lying from it at the distance r.
Input
Four integers - the coefficients a, b, c of the line equation and the value of r. All integers do not exceed 10000 by absolute value.
Output
Print six numbers - the coefficients a, b, c of equations of two lines that are parallel to the given and lying from it at a distance r (r ≠ 0), with six decimal digits. Print three numbers in a row. The order of lines is not important.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 16%