end = 6
total = 0
counter = 0
while counter <= end:
    total += counter
    counter +=1
print(total)
end = 6
total = 0
counter = 0
while counter <= end:
    total += counter
    counter +=1
print(total)