print("Enter the matrix-A","\n")
A11=int(input(" A11 = "))
A12=int(input(" A12 = "))
A13=int(input(" A13 = "))
A21=int(input(" A21 = "))
A22=int(input(" A22 = "))
A23=int(input(" A23 = "))
A31=int(input(" A31 = "))
A32=int(input(" A32 = "))
A33=int(input(" A33 = "))
print("\n","Enter the matrix-B","\n")
B11=int(input(" B11 = "))
B12=int(input(" B12 = "))
B13=int(input(" B13 = "))
B21=int(input(" B21 = "))
B22=int(input(" B22 = "))
B23=int(input(" B23 = "))
B31=int(input(" B31 = "))
B32=int(input(" B32 = "))
B33=int(input(" B33 = "))
print("\n","Your Matrix-A is = ","|",A11,A12,A13,"|")
print(' ',"|",A21,A22,A23,"|")
print(' ',"|",A31,A32,A33,"|")
print("\n","Your Matrix-B is = ","|",B11,B12,B13,"|")
print(' ',"|",B21,B22,B23,"|")
print(' ',"|",B31,B32,B33,"|")
M1=(A11*B11)+(A12*B21)+(A13*B31)
M2=(A11*B12)+(A12*B22)+(A13*B32)
M3=(A11*B13)+(A12*B23)+(A13*B33)
M4=(A21*B11)+(A22*B21)+(A23*B31)
M5=(A21*B12)+(A22*B22)+(A23*B32)
M6=(A21*B13)+(A22*B23)+(A23*B33)
M7=(A31*B11)+(A32*B21)+(A33*B31)
M8=(A31*B12)+(A32*B22)+(A33*B32)
M9=(A31*B13)+(A32*B23)+(A33*B33)
print("\n","Therefore, A x B = ","|",M1,M2,M3,"|")
print(' ',"|",M4,M5,M6,"|")
print(' ',"|",M7,M8,M9,"|")