Given two matrices, calculate the product of the two matrices.
The product of two matrices will produce another matrix where:
A = [ A₁₁ A₁₂
A₂₁ A₂₂ ]
B = [ B₁₁ B₁₂
B₂₁ B₂₂ ]
C = A × B = [ C₁₁ C₁₂
C₂₁ C₂₂ ]
C₁₁ = A₁₁ × B₁₁ + A₁₂ × B₂₁
C₁₂ = A₁₁ × B₁₂ + A₁₂ × B₂₂
C₂₁ = A₂₁ × B₁₁ + A₂₂ × B₂₁
C₂₂ = A₂₁ × B₁₂ + A₂₂ × B₂₂
For example:
A = [ 2 3
4 5 ]
B = [ 5 6
7 8 ]
C = A × B = [ 31 36
55 64 ]
The input contains two matrices as follows:
A₁₁ A₁₂
A₂₁ A₂₂
B₁₁ B₁₂
B₂₁ B₂₂
The value of each of these 8 integers is non-negative and less than 100.
Print the product of the two matrices as follows:
C₁₁ C₁₂
C₂₁ C₂₂