Help on IPCCERT

What’s wrong with my code? PROBLEM = IPCCERT

init = list(map(int, input().split()))
eli = 0
for i in range(init[0]):
student_i = list(map(int, input().split()))
if sum(student_i[:len(student_i) - 1]) > init[1] and student_i[len(student_i) - 1] <= 10:
eli += 1
print(eli)