<gh_stars>1-10
"""
Creator : <NAME>
Updated : 211022
Reference : BOJ 10818
"""
num = int(input())

def min_max(num:int) -> list:
    i=0
    num_list = []
    # get the list of ints
    while(i<num):
        num_list.append(input(int))
        i+=1
    

    return [min(num_list), max(num_list)]

print(min_max(num))
"""
Creator : <NAME>
Updated : 211022
Reference : BOJ 10818
"""
num = int(input())

def min_max(num:int) -> list:
    i=0
    num_list = []
    # get the list of ints
    while(i<num):
        num_list.append(input(int))
        i+=1
    

    return [min(num_list), max(num_list)]

print(min_max(num))
Creator : <NAME> Updated : 211022 Reference : BOJ 10818 # get the list of ints