Buggy python submission (verdict: Runtime Error):
while True:
    count = 0
    num = [int(i) for i in input().split("")]
    if num[0] == 0:
        break
    for n in num:
        count += n
    print(count)
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    count = 0
    num = [int(i) for i in input().split("")]
    if num[0] == 0:
        break
    for n in num:
        count += n
    print(count + "\n")
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    count = 0
    num = [int(i) for i in input().split("")]
    if num[0] == 0:
        break
    for n in num:
        count += n
    print(count, end ="\n")
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    count = 0
    num = [int(i) for i in input().split("")]
    if num[0] == 0:
        break
    for n in num:
        count += n
        print(count, end ="\n")
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    num = [int(i) for i in input().split("")]
    if num[0] == 0:
        break
    print(sum(num))
    
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    num = [int(i) for i in input().split("")]
    if num[0] == 0:
        break
    print(sum(num), end = "\n")
    
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    num = [int(i) for i in input().split("")]
    if num[0] == 0:
        break
    print(sum(num))
    
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    x = input()
    if x == "0":
        break
    num = x.split("")
    print(sum(num))
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x.split("")]
    print(str(sum(num)))
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x.split("")]
    print(sum(num))
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x.split("")]
    print(sum(num), end = "\n")
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x.split("")]
    print(sum(num))
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x.split("")]
    print(sum(num))
     

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x.split("")]
    print(sum(num))

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    x = input()
    if x == "0":
        break
    ns = []
    for n in x:
    ns.append(int(n))
     
    print(sum(ns))

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))

Buggy python submission (verdict: Runtime Error):
while True:
    x = input()
    if x == "0":
        break
    ns = []
    for n in x:
    ns.append(int(n))
    print(sum(ns))

Fixed submission:
while True:
    x = input()
    if x == "0":
        break
    num = [int(i) for i in x]
    print(sum(num))