print((["Yes","No"][(lambda x:(abs(x//100-x%10)+99)//100)(eval(input()))]))
print((["Yes","No"][(lambda x:bool(x//100-x%10))(eval(input()))]))

print((["Yes", "No"][(lambda x: (abs(x // 100 - x % 10) + 99) // 100)(eval(input()))]))

print((["Yes", "No"][(lambda x: bool(x // 100 - x % 10))(eval(input()))]))

-print((["Yes", "No"][(lambda x: (abs(x // 100 - x % 10) + 99) // 100)(eval(input()))])) +print((["Yes", "No"][(lambda x: bool(x // 100 - x % 10))(eval(input()))]))