n = int(input()) m = int(input()) if m%2 == 0: if n%2 == 0: print("Yes") elif n > 9: print("Yes") else:print("No") else: print("No")