while True:
    a, b = [ int(x) for x in input().split() ]
    if a==0 and b==0:
        break
    resultado = "%d" % (a+b)
    print(resultado.replace("0", ""))

while True:
    a, b = [ int(x) for x in input().split() ]
    if a==0 and b==0:
        break
    resultado = "%d" % (a+b)
    print(resultado.replace("0", ""))
