My fault. It would be better as `( n + m - 2 <= 0 && n >= 1 && m >= 1 )`