Skip to main content

~/algor $ cat contests/round-7/AT

AT. Line through two points

Problem AT ICPC rules 1000 ms 64 MB

Two points on the plane are given: and . Find the coefficients and of the line passing through them:

Points A and B on the coordinate plane and the line through them; its slope k and its y-intercept b

Input

One line with four integers: , , and .

Output

One line with two numbers: and , each with exactly 2 digits after the decimal point (for example, 2.00). If the rounded result is zero (for example, ), print 0.00 (not -0.00).

Note


Examples

Input #1
1 3 3 7
Output #1
2.00 1.00
Input #2
-2 1 4 -2
Output #2
-0.50 0.00

Sign in to submit a solution

Signing up is free and takes a minute.