Buggy python submission (verdict: Runtime Error):
he = input()
lista = []
counter1, counter2 = 0,0

while True:
    inp = tuple(map(int,input().split()))
    if not inp:
        break
    counter1 += 1
    print(inp)
    
    if (abs(inp[1])+abs(inp[2])) in range(inp[0], 0, -2):
        counter2 += 1
    else:
        break

if counter1 == counter2:
    print('Yes')
else:
    print('No')

Fixed submission:
n = int(input())
t_ = 0
xy_ = [0,0]
for _ in range(n):
    t, *xy = map(int, input().split())
    ta = t - t_
    xya = [abs(xy[0]-xy_[0]), abs(xy[1]-xy_[1])]
    if sum(xya) > ta or (ta - sum(xya))%2 != 0:
        print("No")
        break
    t_ = t
    xy_ = xy
else:
    print("Yes")

Buggy python submission (verdict: Runtime Error):
turn = int(input())

lista = []
while True:
    inpy = tuple(map(int, input().split()))
    if inpy:
        lista.append(inpy)
    else:
        break

counter = 0
for challenge in range(len(lista)):
    inp = lista[challenge]
   
    if sum(inp[1:]) <= inp[0] and sum(inp[1:]) >= -inp[0]:
        if inp[0] % 2 == 0 and sum(inp[1:]) % 2 ==0:
            counter += 1
            # print('Yes')
        elif inp[0] % 2 != 0 and sum(inp[1:]) % 2 != 0:
            counter += 1
            # print('Yes')
        else:
            pass
            # print('No')
    else:
        pass
        # print('No')

if counter == len(lista):
    print('Yes')
else:
    print('No')

Fixed submission:
n = int(input())
t_ = 0
xy_ = [0,0]
for _ in range(n):
    t, *xy = map(int, input().split())
    ta = t - t_
    xya = [abs(xy[0]-xy_[0]), abs(xy[1]-xy_[1])]
    if sum(xya) > ta or (ta - sum(xya))%2 != 0:
        print("No")
        break
    t_ = t
    xy_ = xy
else:
    print("Yes")

Buggy python submission (verdict: Runtime Error):
he = input()
lista = []
counter1, counter2 = 0,0

while True:
    inp = tuple(map(int,input().split()))
    if not inp:
        break
    counter1 += 1
    print(inp)
    if (inp[1]+inp[2]+inp[0]) % 2 == 0: 
        counter2 += 1
    else:
        break

if counter1 == counter2:
    print('Yes')
else:
    print('No')

Fixed submission:
n = int(input())
t_ = 0
xy_ = [0,0]
for _ in range(n):
    t, *xy = map(int, input().split())
    ta = t - t_
    xya = [abs(xy[0]-xy_[0]), abs(xy[1]-xy_[1])]
    if sum(xya) > ta or (ta - sum(xya))%2 != 0:
        print("No")
        break
    t_ = t
    xy_ = xy
else:
    print("Yes")

Buggy python submission (verdict: Runtime Error):
turn = int(input())

lista = []
while True:
    inpy = tuple(map(int, input().split()))
    if inpy:
        lista.append(inpy)
    else:
        break

counter = 0
for challenge in range(len(lista)):
    inp = lista[challenge]
   
    if sum(inp[1:]) <= inp[0] and sum(inp[1:]) >= -inp[0]:
        if inp[0] % 2 == 0 and sum(inp[1:]) % 2 ==0:
            counter += 1
            # print('Yes')
        elif inp[0] % 2 != 0 and sum(inp[1:]) % 2 != 0:
            counter += 1
            # print('Yes')
        else:
            pass
            # print('No')
    else:
        pass
        # print('No')

if counter == 2:
    print('Yes')
else:
    print('No')

Fixed submission:
n = int(input())
t_ = 0
xy_ = [0,0]
for _ in range(n):
    t, *xy = map(int, input().split())
    ta = t - t_
    xya = [abs(xy[0]-xy_[0]), abs(xy[1]-xy_[1])]
    if sum(xya) > ta or (ta - sum(xya))%2 != 0:
        print("No")
        break
    t_ = t
    xy_ = xy
else:
    print("Yes")