#CCBCMCHIN0000013. Ngoài đoạn mở (Outside an Open Interval)

Ngoài đoạn mở (Outside an Open Interval)

Outside an Open 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 outside the open interval (l,r)(l,r); the endpoints are excluded.

Input

One line containing three integers l,r,xl,r,x.

Output

Print YES if x≤lx\le l or x≥rx\ge 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

YES

Explanation

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

Example 2

Input

2 6 4

Output

NO

Explanation

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