print("Enter the matrix-A","\n")
A11=int(input(" A11 = "))
A12=int(input(" A12 = "))
A21=int(input(" A21 = "))
A22=int(input(" A22 = "))
print("\n","Enter the matrix-B","\n")
B11=int(input(" B11 = "))
B12=int(input(" B12 = "))
B21=int(input(" B21 = "))
B22=int(input(" B22 = "))
print("\n","Your Matrix-A is = ","|",A11,A12,"|")
print(' ',"|",A21,A22,"|")
print("\n","Your Matrix-B is = ","|",B11,B12,"|")
print(' ',"|",B21,B22,"|","\n")
M1=(A11*B11)+(A12*B21)
M2=(A11*B12)+(A12*B22)
M3=(A21*B11)+(A22*B21)
M4=(A21*B12)+(A22*B22)
print("Therefore, A x B = ","|",M1,M2,"|")
print(' ',"|",M3,M4,"|")