CodeLab Academy 📞 9936 6696
← List Python · Level 8: Nested loops Code · 80 points ← #739 #741 →

#740. Matrix: Is it symmetric? (`Yes`/`No`)

You are given a matrix of integers. **Is it symmetric? (`Yes`/`No`)**. ### Input The first line has n n, each of the next n lines has n integers (a square matrix). ### Output The answer.

Examples

Input
2 2
2 1
1 0
Output
Yes
Input
2 2
1 2
3 4
Output
No

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!