program note;
uses crt;
var a,b,c,d,e,f,g,h:integer;
begin
clrscr;
read(a,b,c,d,e,f,g,h);
if (a < b) and (b < c) and ( c < d) and (d < e) and (e < f ) and (f < g) and (g < h) then
writeln ('ascending')
else if (a > b) and (b > c) and ( c > d) and (d > e) and (e > f ) and (f > g) and (g > h) then
writeln('descending')
else
writeln('mixed');
readkey;
end.