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