res=list(map(int,input().split())) if res[1]==res[3]: print('Yes') else: print('No')