##c=0
##for number in range(1,100+1):
##    print (number)
##    c=c+number
##print(c)


##def add_number():
##    c=0
##    for number in range(1,100+1):
##        print (number)
##        c=c+number
##    return(c)
##answer=add_number()
##print (answer)


def add_numbers(start,end):
    c=0
    for number in range(start,end):
        print (number)
        c=c+number
    return(c)

test1=add_numbers(333,778)
print(test1)
       
