import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def main():
    c100=int(input())
    c10=int(input())
    total=100*c100+10*c10
    half=total//2
    remain=half-100*min(c100,half//100)
    if remain//10<=c10:
        print("Yes")
    else:
        print("No")

main()