s = str(input()) a = s[0] b = s[1] c = s[2] if a == b: print(Yes) else: print(No)