#abc088c. [abc088_c]Takahashi's Information
[abc088_c]Takahashi's Information
Problem Statement
We have a grid. A number is written in the square , where denotes the square at the -th row from the top and the -th column from the left.
According to Takahashi, there are six integers whose values are fixed, and the number written in the square is equal to .
Determine if he is correct.
Constraints
- is an integer between and (inclusive).
Input
Input is given from Standard Input in the following format:
Output
If Takahashi's statement is correct, print Yes
; otherwise, print No
.
Sample Input 1
1 0 1
2 1 2
1 0 1
Sample Output 1
Yes
Takahashi is correct, since there are possible sets of integers such as: .
Sample Input 2
2 2 2
2 1 2
2 2 2
Sample Output 2
No
Takahashi is incorrect in this case.
Sample Input 3
0 8 8
0 8 8
0 8 8
Sample Output 3
Yes
Sample Input 4
1 8 6
2 9 7
0 7 7
Sample Output 4
No