n = int(input()) f = [-1] * (10 ** 5 + 1) ans = True for _ in range(n): s, t = map(int, input().split()) if not (f[s] == -1 or f[s] == t): ans = False f[s] = t print('Yes' if ans else 'No')