Case = int(input())
num_list = list(map(int, input().split()))
print('{} {}'.format(min(num_list), max(num_list)))

'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글

백준 1712번(python)  (0) 2019.07.03
백준 3052번(python)  (0) 2019.07.03
백준 11729번(python)  (0) 2019.06.28
백준 2447번(python)  (4) 2019.06.28
백준 10872번(python)  (0) 2019.06.27