Problem10125--ABC352 —— A - AtCoder Line

10125: ABC352 —— A - AtCoder Line

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 512 MiB

Description

The AtCoder railway line has $N$ stations, numbered $1, 2, \ldots, N$.

On this line, there are inbound trains that start at station $1$ and stop at the stations $2, 3, \ldots, N$ in order, and **outbound trains** that start at station $N$ and stop at the stations $N - 1, N - 2, \ldots, 1$ in order.

Takahashi is about to travel from station $X$ to station $Y$ using only one of the inbound and outbound trains.

Determine whether the train stops at station $Z$ during this travel.

Input

The input is given from Standard Input in the following format:

```
$N$ $X$ $Y$ $Z$
```

Output

If the train stops at station $Z$ during the travel from station $X$ to station $Y$, print `Yes`; otherwise, print `No`.

Constraints

-   $3 \leq N \leq 100$
-   $1 \leq X, Y, Z \leq N$
-   $X$, $Y$, and $Z$ are distinct.
-   All input values are integers.

Sample 1 Input

7 6 1 3

Sample 1 Output

Yes

To travel from station 6 to station 1, Takahashi will take an outbound train.

After departing from station 6, the train stops at stations 5,4,3,2,1 in order, which include station 3, so you should print Yes.

Sample 2 Input

10 3 2 9

Sample 2 Output

No

Sample 3 Input

100 23 67 45

Sample 3 Output

Yes

Source/Category