Let \(S\) be the sum of all the \(mn\) numbers in the table. Note that after an operation, each number stay the same or turns to its negative. Hence there are at most \(2^{mn}\) tables. So \(S\) can only have finitely many possible values. To make the sum of the numbers in each line nonnegative, just look for a line whose numbers have a negative sum. If no such line exists, then we are done. Otherwise, reverse the sign of all the numbers in the line. Then \(S\) increases. Since \(S\) has finitely many possible values, \(S\) can increase finitely many times. So eventually the sum of the numbers in every line must be nonnegative.

Let SS be the sum of all the mnmn numbers in the table. Note that after an operation, each number stay the same or turns to its negative. Hence there are at most 2mn2mn tables. So SS can only have finitely many possible values. To make the sum of the numbers in each line nonnegative, just look for a line whose numbers have a negative sum. If no such line exists, then we are done. Otherwise, reverse the sign of all the numbers in the line. Then SS increases. Since SS has finitely many possible values, SS can increase finitely many times. So eventually the sum of the numbers in every line must be nonnegative

Let SS be the sum of all the mnmn numbers in the table. Note that after an operation, each number stay the same or turns to its negative. Hence there are at most 2mn2mn tables. So SS can only have finitely many possible values. To make the sum of the numbers in each line nonnegative, just look for a line whose numbers have a negative sum. If no such line exists, then we are done. Otherwise, reverse the sign of all the numbers in the line. Then SS increases. Since SS has finitely many possible values, SS can increase finitely many times. So eventually the sum of the numbers in every line must be nonnegative.

Let SS be the sum of all the mnmn numbers in the table. Note that after an operation, each number stay the same or turns to its negative. Hence there are at most 2mn2mn tables. So SS can only have finitely many possible values. To make the sum of the numbers in each line nonnegative, just look for a line whose numbers have a negative sum. If no such line exists, then we are done. Otherwise, reverse the sign of all the numbers in the line. Then SS increases. Since SS has finitely many possible values, SS can increase finitely many times. So eventually the sum of the numbers in every line must be nonnegative.

Let SS be the sum of all the mnmn numbers in the table. Note that after an operation, each number stay the same or turns to its negative. Hence there are at most 2mn2mn tables. So SS can only have finitely many possible values. To make the sum of the numbers in each line nonnegative, just look for a line whose numbers have a negative sum. If no such line exists, then we are done. Otherwise, reverse the sign of all the numbers in the line. Then SS increases. Since SS has finitely many possible values, SS can increase finitely many times. So eventually the sum of the numbers in every line must be nonnegative.

Let SS be the sum of all the mnmn numbers in the table. Note that after an operation, each number stay the same or turns to its negative. Hence there are at most 2mn2mn tables. So SS can only have finitely many possible values. To make the sum of the numbers in each line nonnegative, just look for a line whose numbers have a negative sum. If no such line exists, then we are done. Otherwise, reverse the sign of all the numbers in the line. Then SS increases. Since SS has finitely many possible values, SS can increase finitely many times. So eventually the sum of the numbers in every line must be nonnegative.