2025-05-19 20:51:01 +09:00

3 lines
83 B
Python

n = int(input())
arr = list(map(int, input().split(" ")))
print(min(arr), max(arr))