A = input() S = f"{A}" if S[0] == S[1]: print("Yes") else: print("No")