n = cont = s = 0
'''while n != 999:
    n = int(input("number:")) ->ANTES
    cont += 1
    s += n
print("The sum is {}".format(s))'''
while True:
    n = int(input("Number:"))
    if n == 999:
        break
    s += 1
'''print("The sum of all your number is {}".format(s))'''
print(f"The sum of all your number is {s}")
'''Nova coisinha do PYTHON ^ '''
