n,m,*v=open(0).read().split() v=[0,0]+v print('YNeos'[any([s-t