Five-digit in order
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Five-digit number is given. Determine whether all its digits are in ascending order, starting with the leftmost one. For example, in the number all digits are arranged in ascending order.
Input
One five-digit number .
Output
Print ""YES", if all digits in number are arranged in ascending order, and ""NO" otherwise.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 14K
Acceptance rate 45%