Catch inputs with different number of elements in the rows