Run ID:47455

提交时间:2023-04-30 14:12:46

a=[] c=0 d=0 e=0 while True: b=int(input()) if b==0: break c=b*b while True: d=int(d+b%10) b=int(b/10) e=int(e+c%10) c=int(c/10) if b==0 and c==0: break a.append(str(d)+" "+str(e)) d=0 e=0 for i in a: print(i)