n = int(input()) b = 1 for _ in range(n): s = input() if s == 'No': b = 1 - b print('YNeos'[b < 1::2])