def sum_matrix(a, b, n):
    for i in range(n):
        for j in range(n):
            a[i][j] = a[i][j] + b[i][j]
    return a


if __name__ == "__main__":
    n = int(input("Please input the number: "))
    a = []
    b = []
    print("Please input the first matrix:")
    for i in range(n):
        c = [int(j) for j in input().split(" ")]
        a.append(c[:n])
    print("Please input the second matrix:")
    for i in range(n):
        c = [int(j) for j in input().split(" ")]
        b.append(c[:n])
    print(sum_matrix(a, b, n))

4199ff697a29a192abe0ea07eba1e0abddd06486
<mask token>

def sum_matrix(a, b, n):
    for i in range(n):
        for j in range(n):
            a[i][j] = a[i][j] + b[i][j]
    return a


<mask token>

def sum_matrix(a, b, n):
    for i in range(n):
        for j in range(n):
            a[i][j] = a[i][j] + b[i][j]
    return a


if __name__ == '__main__':
    n = int(input('Please input the number: '))
    a = []
    b = []
    print('Please input the first matrix:')
    for i in range(n):
        c = [int(j) for j in input().split(' ')]
        a.append(c[:n])
    print('Please input the second matrix:')
    for i in range(n):
        c = [int(j) for j in input().split(' ')]
        b.append(c[:n])
    print(sum_matrix(a, b, n))

def sum_matrix(a, b, n):
    for i in range(n):
        for j in range(n):
            a[i][j] = a[i][j] + b[i][j]
    return a


if __name__ == "__main__":
    n = int(input("Please input the number: "))
    a = []
    b = []
    print("Please input the first matrix:")
    for i in range(n):
        c = [int(j) for j in input().split(" ")]
        a.append(c[:n])
    print("Please input the second matrix:")
    for i in range(n):
        c = [int(j) for j in input().split(" ")]
        b.append(c[:n])
    print(sum_matrix(a, b, n))
