import sys input=lambda: sys.stdin.readline().rstrip() x,y=map(int,input().split()) if (x%2)+(y%2)==1 and x+y<=9 and abs(x)<=6 and abs(y)<=6: print("YES") else: print("NO")