N = int(input()) ans = "Yes" for _ in range(N) : s = input() ans = "Yes" if ans == s else "No" print(ans)