Read n x n matrix. Check if it is an identity matrix. Print Yes or No.
Write a complete program: read the input with input() and print the result with print().
input()
print()
Input
3 1 0 0 0 1 0 0 0 1
Output
Yes