N, M = int(input().strip()[-1]), int(input().strip()[-1]) A = N % 2 B = M + A*10 print(['Yes', 'No'][B % 2])