n = int(input())
t_now = 0
x_now = 0
y_now = 0
flag = True
for _ in range(n):
    t, x, y = map(int, input().split())
    if t < abs(x - x_now) or t < abs(y - y_now) or (y == y_now and x == x_now):
        print('No')
        flag = False
        break
    t_now = t
    x_now = x
    y_now = y
if flag:
    print('Yes')
