N = int(input()) M = int(input()) if M % 2 == 0: print('Yes')