import sys input = sys.stdin.readline n=int(input()) P=[] for i in range(n): p=input().rstrip() if n==1: print(p) exit() if p=="Yes": P.append(1) else: P.append(0) memo=[0]*n for i in range(n-2,-1,-1): if P[i]==P[i+1]: flg=1 else: flg=0 if flg==P[i]: memo[i]=memo[i+1] else: memo[i]=1-memo[i+1] if P[-2]==P[-1]: now=1 else: now=0 for i in range(n-3,-1,-1): if now==P[i]: now=1 else: now=0 ans=[0]*n ans[-1]=now for i in range(n-2,-1,-1): if memo[i]==0: ans[i]=ans[-1] else: ans[i]=1-ans[-1] for i in ans: if i==0: print("No") else: print("Yes")