The first line contains two space separated integers, N and M. The next N lines contains M space separated integers of array . The following N lines contains M space separated integers of array B.