a,b=map(int,input().split()) T=list(map(int,input().split())) S=list(map(int,input().split())) print('Yes' if sum([t%2 for t in T]) else 'No')