There is an index 0 somewhere in test case 6, just skipping the line with it should solve the problem
Condition 4 requires us to have at least two points, so the answer for testcase "1 0" should also be "No"