Le cifre sono non decrescenti?

Dato un numero n, il tuo compito è scrivere un programma che verifichi se le cifre di n non sono decrescenti. Il programma dovrebbe stampare Yes se le cifre sono non decrescenti e No altrimenti.

Input

Output

1234578

Yes

111345726879

No

123334

Yes

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue