A bishop on a chess-board can only move along diagonals.
Each position on the board is given by two symbols: a capital letter for the
column, from A to H, and a digit for the row, from 1 to 8. For example,
C4 is the position in column C, row 4.
Accept two positions as input, start and end. Print YES if a bishop at
start can move to end in exactly one move, and NO otherwise.
Input
Two lines: the starting position and the ending position.
Output
A single line: YES or NO.
Example
Input:
C4
F7
Output:
YES
Write a complete program: read the input with input() and print the result with print().
Input
C4
F7
Output
YES