~/algor $ cat contests/round-9/A
A. The closer point
Problem A
ICPC rules
1000 ms
64 MB
Three points , and are given on the number line. Determine which of the points and is closer to , and find its distance to .
Input
One line with three integers: the coordinates of , and .
Output
One line: the name of the closer point (A or C) and the distance — an integer.
Note
Examples
Input #1
1 3 6
Output #1
A 2
Input #2
6 3 1
Output #2
C 2