def solve A[0] < A[1] && A[2] > A[3] ? "YES" : "NO" end A = gets.split.map(&:to_i) puts solve