(lambda ft: print(ft.reduce(lambda p, c: (lambda t, d: (p[0] < 0 or d > t or d % 2 != t % 2) and [-1, -1, -1] or c)(c[0] - p[0], abs(c[1] - p[1]) + abs(c[2] - p[2])), [list(map(int, input().split())) for _ in range(int(input()))], [0, 0, 0])[0] < 0 and "No" or "Yes"))(__import__("functools"))