import sys
input = sys.stdin.readline

scale = list(map(int, input().split()))

if scale == sorted(scale):
    print('ascending')
elif scale == sorted(scale, reverse=True):
    print('descending')
else:
    print('mixed')