a = [1,2,3,4,5,6,7,8]
d = [8,7,6,5,4,3,2,1]
lst = list(map(int,input().split()))
if lst == a:
print('ascending')
elif lst == d:
print('descending')
else:
print("mixed")
'문제풀이 > 백준(Boj) 문제풀이' 카테고리의 다른 글
[백준][구현] 11719. 그대로 출력하기 - 2 (파이썬/Python) (0) | 2021.10.27 |
---|---|
[백준][구현] 11721. 열 개씩 끊어 출력하기 (파이썬/Python) (0) | 2021.10.27 |
[백준][구현] 11718. 그대로 출력하기 (파이썬/Python) (0) | 2021.10.27 |
[백준][구현] 1924. 2007년(파이썬/Python) (0) | 2021.10.27 |
[백준][구현] 2441. 별 찍기 - 4(파이썬/Python) (0) | 2021.10.27 |