n=int(input()) m=int(input()) yes = 0 if n%2 and m>=10 and m%2==0: yes=1 elif n%2==0 and m%2==0: yes=1 print('YES' if yes else 'NO')