LearnPy Hub
← Lists problems
Medium

Already Sorted?

Read integers and print ascending, descending or neither. A list where all neighbours are equal, or of length 1, counts as ascending.

Input

Integers separated by spaces.

Output

One word.

Sample 1

Input
1 2 2 5
Output
ascending

Sample 2

Input
9 4 1
Output
descending
solution.py
Output appears here
Already Sorted? · Python practice problem · LearnPy Hub