e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

Week 2: November 16 – 22. Conditional statement. Part 1

Inside the interval

Determine whether the number x belongs to the interval [a; b]. Number x belongs to the interval [a; b] if axb.

Input

Three integers x, a, b, not greater than 109 by absolute value.

Output

Print "YES", if the number x belongs to the interval [a; b]. Otherwise print "NO".

Time limit 1 second
Memory limit 128 MiB
Input example #1
4 2 6
Output example #1
YES
Input example #2
5 10 15
Output example #2
NO