Note

문제 정보

    • 문제 ID
    • 시간 제한
    • 메모리 제한
    • 제출 횟수
    • 정답 횟수 (비율)
    • 출제자
    • 출처
    • 분류

문제

C major scale consists of 8 tones: c d e f g a b C. For this task we number the notes using numbers 1 through 8. The scale can be played ascending, from 1 to 8, descending, from 8 to 1, or mixed. Write a program that, given the sequence of notes, determines wether the scale was played ascending, descending or mixed.

입력

First and only line of input will contain 8 integers, from 1 to 8 inclusive. Each integer will appear exactley once in the input.

출력

In the first and only line of input print "descending" if the scale was played descending, "ascending" if the scale was played ascending and "mixed" if the scale was played mixed.

예제 입력

Example 1
1 2 3 4 5 6 7 8

Example 2
8 7 6 5 4 3 2 1

Example 3
8 1 7 2 6 3 5 4

예제 출력

Example 1
ascending

Example 2
descending

Example 3
mixed

노트

4개의 댓글이 있습니다.