Problem D
Disc District
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
Input
The only line of the input contains a single integer
Output
The output should contain a single line with two integers,
the
Sample Input 1 | Sample Output 1 |
---|---|
1 |
1 1 |
Sample Input 2 | Sample Output 2 |
---|---|
8 |
4 7 |
Sample Input 3 | Sample Output 3 |
---|---|
90210 |
69551 57450 |