Given three square matrices A, B, C, each of size n \times n. Check whether A B = C.
Each test case starts with an integer (n \leq 500). Then three matrices A, B, C are given, each described by lines containing exactly integers. Elements of matrices A and B do not exceed in absolute value. The last test case contains n = 0 and should not be processed. For example, in the first test case you should check the equality

For each test case, output "YES" or "NO" on a separate line, depending on whether A B = C holds or not.
Example 1