from sys import exit, stdin
# stdin = open("input.txt")

if __name__ == "__main__":
    N = int(stdin.readline().rstrip())
    cords = [(int(t), int(x), int(y)) 
            for t, x, y in 
            [stdin.readline().rstrip().split() for i in range(N)]]

    dist = lambda x, y: abs(x) + abs(y)
    
    for t, x, y in cords:
        if dist(x, y) > t:
            # no way!
            print("No")
            exit(0)
        
        if not (x + y) % 2 == t % 2:
            print("No")
            exit(0)
    
    print("Yes")