n = int(input()) ans = "Yes" for i in range(n): if input() == "No": ans = "No" if ans == "Yes" else "Yes" print(ans)