import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] input = new int[8];
for (int i = 0; i < 8; i++) {
input[i] = sc.nextInt();
}
int ascd = 0;
int desc = 0;
int mix = 0;
for (int i = 0; i < 7; i++) {
if (input[i + 1] - input[i] > 0)
ascd = 1;
if (input[i + 1] - input[i] < 0)
desc = 1;
if (ascd == 1 && desc == 1) {
mix = 1;
break;
}
}
if (mix == 1) {
System.out.print("mixed");
}
else if (ascd == 1) {
System.out.print("ascending");
}
else if (desc == 1) {
System.out.print("descending");
}
}
}