nums = [] for num in range(1,1000001): nums.append(num) print("{},{},{}\n".format(min(nums),max(nums),sum(nums)))