Game of the Rows

CodeForces - 839B