eolymp
bolt
Try our new interface for solving problems
Problems

The distance from the point to the line

The distance from the point to the line

Find the distance from the point O to the line ax + by + c = 0.

Input

Five integers - the coordinates of the point O and coefficients a, b, c of the line equation. All integers do not exceed 10000 by absolute value.

Output

Print one number - the distance from the point O to the line with an accuracy of at least 10-6.

Time limit 1 second
Memory limit 128 MiB
Input example #1
1 1 1 1 -1
Output example #1
0.70710678