def check(): A, B, C, D = map(int, input().split()) if AD: return 'YES' return 'NO' print(check())