(define yuki1107 (let* ((a1 (read)) (a2 (read)) (a3 (read)) (a4 (read))) (display (if (and (< a1 a2) (> a3 a4)) "YES\n" "NO\n"))))