LearnPy Hub
← Arena
EasyRating 900

Symmetric?

Print YES if the square matrix equals its transpose.

Input

n, then n lines.

Output

YES or NO.

Sample 1

Input
3
1 2 3
2 4 5
3 5 6
Output
YES

Sample 2

Input
2
1 2
3 4
Output
NO
solution.py
Output appears here
Symmetric? · Python Arena problem · LearnPy Hub