def main(): A, B = map(int, input().split()) ans = 'Yes' while A > 0 and B > 0: if not A % 2: A %= 2 B -= 1 elif not B % 2: A -= 1 B %= 2 else: ans = 'No' break print(ans) main()