import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random #sys.setrecursionlimit(10**9) #sys.set_int_max_str_digits(0) input = sys.stdin.readline n = int(input()) alist = [] for i in range(n): s = input() if s[0] == 'Y': alist.append(0) else: alist.append(1) @functools.lru_cache(maxsize=1000000) def calc(l,r): if l == r: return alist[r] return alist[l] ^ calc(l+1,r) for i in range(n): print('Yes' if calc(0,i) == 0 else 'No')