In Innokingdom there are special horses for chess knights, innohorses. Each innohorse is represented by a pair of integers (, ), 0 \leq x \leq y. Innohorse moves in the following way: first it moves cells in one of the four general directions, then turns degrees to the left or to the right, then finally moves more cells. For instance, an ordinary chess knight is an innohorse of type (, ).
Alex and Jane have just seen one innohorse, it jumped from cell to cell . They wonder what is the type of this innohorse. Help them answer this question.
Chessboard consists of rows and columns. Rows are assigned integers from to , and columns are assigned letters from a to h. So every cell is represented by a pair of a letter and a digit.
Two lines consist of descriptions of cells and respectively.
Print two integers and (0 \leq x \leq y), representing the type of innohorse.
Example 1
Example 2