x = input('Введите цифры: ')
x = list(x)
y = 0
for abd in x:
while len(x) != 0:
y += int(x[0])
x.remove(x[0])
print(y)
x = input('Введите цифры: ')
x = list(x)
y = 0
for abd in x:
while len(x) != 0:
y += int(x[0])
x.remove(x[0])
print(y)