#CCBCMCHIN0000015. Hai khoảng tách rời (Outside a Closed Interval)

Hai khoảng tách rời (Outside a Closed Interval)

Outside a Closed Interval

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given L<RL<R and integer xx, decide whether xx lies strictly outside the closed interval [L,R][L,R]. The endpoints themselves are inside.

Input

One line with three integers L,R,xL,R,x.

Output

Print YES if x<Lx<L or x>Rx>R; otherwise print NO.

Subtasks

  • Subtask 1 (20 points): −20≤L,R≤20-20\le L,R\le 20, −20≤x≤20-20\le x\le 20; L<RL<R.
  • Subtask 2 (30 points): −1000≤L,R≤1000-1000\le L,R\le 1000, −2000≤x≤2000-2000\le x\le 2000; L<RL<R.
  • Subtask 3 (50 points): −1000000000≤L,R≤1000000000-1000000000\le L,R\le 1000000000, −1000000000≤x≤1000000000-1000000000\le x\le 1000000000; L<RL<R.

Examples

Example 1

Input

2 6 2

Output

NO

Explanation

The input gives 2, 6, 2. 2 < 2 is False, or 2 > 6 is False. Therefore the required output is ['NO'].

Example 2

Input

2 6 7

Output

YES

Explanation

The input gives 2, 6, 7. 7 < 2 is False, or 7 > 6 is True. Therefore the required output is ['YES'].