N=int(input()) M=int(input()) if M%2: N-=10 if N%2 or N<0: print("No") else: print("Yes")