CF62A A Student's Dream

题目描述

**题目大意:** 有两个人要握手,女孩左手有 $a_l$ 个手指,右手有 $a_r$ 个手指;男孩左手有 $b_l$ 个手指,右手有 $b_r$ 个手指。握手规则为:男孩可以用左手握女孩的右手,也可以用右手握女孩的左手。在女孩的两根手指中间必须有男孩的一根手指,并且男孩的三根手指之间必须有女孩的一根手指。 现在要判断如果可以握手输出 `YES`,不能输出 `NO`。

输入格式

The first line contains two positive integers not exceeding $ 100 $ . They are the number of fingers on the Venusian girl's left and right hand correspondingly. The second line contains two integers not exceeding $ 100 $ . They are the number of fingers on the Marsian boy's left and right hands correspondingly.

输出格式

Print YES or NO, that is, the answer to Petr Palych's question.

说明/提示

The boy and the girl don't really care who goes to the left.