l=list(map(int,input().split()));print("YNeos"[l[1]!=l[3]::2])