total_scores = 1
while True:
    score = int(input("Score? "))
    
    if score == 0:
        break
    
    total_scores = total_scores * score

print("the total is", total_scores)
