N = 10 ** 8 def task(N): r = [] for i in xrange(N): r.append(i) return len(r) print task(N)