sumone = 0
for i in range(0, 101):
    print(i)
    sumone = sumone + i
print("the final sum:" + str(sumone))

i = 1
sumtwo = 0
while i < 101:
    sumtwo = sumtwo + i
    i = i + 1
print("the final sum:" + str(sumtwo))