n=int(input()) a,b,c=map(int,input().split()) n2 = n*2 if a n: print("Yes") else: print("No")