N=int(input()) bef=input() print(bef) ans=bef for i in range(N-1): P=input() if P=="No": if ans=="Yes": ans="No" else: ans="Yes" print(ans) bef=P