import sys a=[10] for i in range(1,41): a.append(a[i-1]+1) print(a) print("{} {}".format(a[0],a[40]))