print("Yes" if int(input())%11 == 0 else "No")