Problems
Point and the circle
Point and the circle
Determine whether the point A with coordinates (x, y) belongs to the part of the plane limited by a circle of radius R centered at O(x0
, y0
).
Input
In the first line the coordinates of point A(x, y) are given. Second line contains three integers: the circle radius R (0 < R ≤ 200) and the coordinates of its center O(x0
, y0
). All coordinates are integers and does not exceed 200 by absolute value.
Output
Print YES if the point belongs to the given part of the plane, NO if not, and ON BORDER if we are "lucky" and the point belongs to the curve describing a circle.
Input example #1
2 3 5 1 2
Output example #1
YES