a,b,c,d = input().split() print("YES" if ad else "NO")