n = int(input())
newlist = []
for i in range(n):
newlist.append(int(input()))
print(
newlist[0],
newlist[len(newlist)-1]
)
Объяснение:
n = int(input())
newlist = []
for i in range(n):
newlist.append(int(input()))
print(
newlist[0],
newlist[len(newlist)-1]
)
Объяснение: