https://www.acmicpc.net/problem/2920
using System;
class Program
{
static void Main(string[] args) {
string[] s=Console.ReadLine().Split(' ');
int a=int.Parse(s[0]);
int x=1;
int y=8;
int b=0;
if(a==1){
for(int i=2;i<=8;i++){
a=int.Parse(s[i-1]);
x++;
if(a!=x){
Console.Write("mixed");
b++;
break;
}
}
if(b==0) Console.Write("ascending");
}
else if(a==8){
for(int i=7;i>=1;i--){
a=int.Parse(s[8-i]);
y--;
if(a!=y){
Console.Write("mixed");
b++;
break;
}
}
if(b==0) Console.Write("descending");
}
else Console.Write("mixed");
}
}