Accept input from stdin
Catch inputs with different number of elements in the rows