#37324: Python 四行解


andylu4146@gmail.com (41247001S 盧昱安)


if int("".join(input().split()))%11 == 0:
print('Yes')
else:
print('No')