eolymp
bolt
Try our new interface for solving problems
Problems

Inside the interval

Inside the interval

Determine whether the number $x$ belongs to the interval $[a; b]$. The number $x$ belongs to the interval $[a; b]$ if $a \le x \le b$. \InputFile Three integers $x, a, b$, each not exceeding $10^9$ in absolute value. \OutputFile Print "\textbf{YES}" if the number $x$ belongs to the interval $[a; b]$. Otherwise, print "\textbf{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