eolymp
bolt
Try our new interface for solving problems
Problems

Parallel lines

Parallel lines

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 (r0), with six decimal digits. Print three numbers in a row. The order of lines is not important.

Time limit 1 second
Memory limit 128 MiB
Input example #1
0 -1 1 1
Output example #1
0.0000 -1.0000 2.0000
0.0000 -1.0000 0.0000