Disc District
면접 대비시간 제한3초메모리 제한1024 MB
반지름 r이 주어질 때, 원점을 중심으로 하는 반지름 r인 원 바깥에 있으면서 원점에 가장 가까운 정수 좌표 점을 찾는다.
문제
You live in the Disc District of Flatland and work for the Nearest Convenient Plot Company (NCPC). Your job is to find the nearest convenient plot of land outside of the Disc District to build on.
The Disc District can be described as a disc on a plane with center and some radius . So a point is outside of the Disc District if the (Euclidean) distance from it to the origin is strictly larger than . A point on the plane is a convenient plot if and are integers.
입력
The only line of the input contains a single integer ().
출력
The output should contain a single line with two integers, the and coordinates of a convenient building location that is closest to the Disc District. If there are more than one answer, output any of them.