N = int(input()) a = int(N / 100) b = int((N /10) - a * 10 ) c = int(N - (a * 100) - (b * 10) ) if a + c == b: print('Yes') else: print('No')