print("No") if len(set(list(input().split())[1:])) == 1 else print("Yes")