eolymp
bolt
Try our new interface for solving problems
Problems

Five-digit in order

Five-digit in order

Five-digit number is given. Determine whether all its digits are in ascending order, starting with the leftmost one. For example, in the number $15689$ all digits are arranged in ascending order. \InputFile One five-digit number $n$. \OutputFile Print ""\textbf{YES}", if all digits in number $n$ are arranged in ascending order, and ""\textbf{NO}" otherwise.
Time limit 1 second
Memory limit 128 MiB
Input example #1
15689 
Output example #1
YES
Input example #2
12321
Output example #2
NO