~/algor $ cat problems/yaqinroq-nuqta
The closer point
Easy
1000 ms
64 MB
24%
Three points $A$, $B$ and $C$ are given on the number line. Determine which of the points $A$ and $C$ is closer to $B$, and find its distance to $B$.
Input
One line with three integers: the coordinates of $A$, $B$ and $C$.
Output
One line: the name of the closer point (A or C) and the distance — an integer.
Note
$-10^{9} \le A, B, C \le 10^{9}$
$|A - B| \ne |C - B|$
Examples
Input #1
1 3 6
Output #1
A 2
Input #2
6 3 1
Output #2
C 2