Олимпиадный тренинг

Задача 38661. Distance from point to line


Input
Six numbers – coordinates of the point and coordinates of the ends of the segment.

Imprint
One number – distance from a point to a segment.
 
Examples
# Input Output
1 0 0 0 0 4 0 0.00000
2 4 0 0 0 4 0 0.00000