풀이
num=list(map(int,input().split(' ')))
ascending=[1,2,3,4,5,6,7,8]
descending=[8,7,6,5,4,3,2,1]
stack=[]
for i in range(8):
if num[i]==ascending[i]:
stack.append(1)
if num[i]==descending[i]:
stack.append(-1)
if sum(stack)==8:
print('ascending')
elif sum(stack)==-8:
print('descending')
else:
print('mixed')