#P7539. [COCI 2009/2010 #1] NOTE

[COCI 2009/2010 #1] NOTE

Description

The C major scale consists of 88 notes: c,d,e,f,g,a,b,C\texttt{c,d,e,f,g,a,b,C}. Number each note from 11 to 88.

The scale can be ascending (from 11 to 88), descending (from 88 to 11), or mixed.

Given the order of the notes, determine whether the scale is ascending, descending, or mixed.

Input Format

One line with eight integers, containing all integers from 11 to 88. Each integer appears exactly once in the input.

Output Format

If the scale is descending, output descending.

If the scale is ascending, output ascending.

If the scale is mixed, output mixed.

1 2 3 4 5 6 7 8
ascending
8 7 6 5 4 3 2 1
descending
8 1 7 2 6 3 5 4
mixed

Hint

[Explanation]

The score settings of this problem follow the original COCI problem, with a full score of 3030.

This problem is translated from COCI2009-2010 CONTEST #1 T1 NOTE.

Translated by ChatGPT 5