N = int(input()) flag = 0 for _ in range(N): P = input() if int(P == "Yes") ^ flag: print("Yes") else: print("No") flag ^= 1