
아이디어
a = list(map(int, input().split(" ")))
asc = True
dec = True
for i in range(1,8):
    if a[i] > a[i-1]:
        dec = False
    elif a[i] < a[i-1]:
        asc = False
        
if asc:
    print("ascending")
elif dec:
    print("descending")
else:
    print("mixed")