CodeLab Academy 📞 9936 6696
← List Python · Level 7: Lists Code · 70 points ← #658 #660 →

#659. Is it sorted?

If the list never goes down (each element is greater than or equal to the one before), print `Yes`, otherwise print `No`. ### Input The first line has n, the second line has n integers separated by spaces. ### Output `Yes` or `No`.

Examples

Input
7
7 9 0 9 4 0 8
Output
No
Input
5
1 2 2 5 9
Output
Yes

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!