now = 0
for i in range(int(input())):
    x = input()[0] == 'Y'
    print('Yes' if x ^ now else 'No')
    now ^= not x