def my_func ():
    number_list = []
    for i in range(0, 3):
        number= int(input("Введите число: "))
        number_list.append(number)
    print(number_list[0])
    print(number_list [-1])
my_func()
