import java.util.*;
import java.io.*;
public class Main
{
public static void main(String args[]) throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String s = br.readLine();
if(s.equals("1 2 3 4 5 6 7 8"))
System.out.print("ascending");
else if(s.equals("8 7 6 5 4 3 2 1"))
System.out.print("descending");
else
System.out.print("mixed");
}
}[소프티어 2Level]8단 변속기(Java)
2023. 8. 3. 15:00