N=int(input()) M=int(input()) print("YNeos"[N%2 and M<9 or M%2::2])