In each square of a rectangular table of size M×K, a number is written. The sum of the numbers in each row and in each column, is 1. Prove that M=K.