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 2

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.

Input

One five-digit number.

Output

Print "YES", if all digits in number are arranged in ascending order, and "NO" otherwise.

Time limit 1 second
Memory limit 128 MiB
Input example #1
15689 
Output example #1
YES