n=int(input()) m=int(input()) n+=m//10;m=m%10 if not (n+m)%2: print('Yes') else: print('No')