st=input() ls=[] for i in range(len(st)): ls.append(int(st[i])) print(ls) for i in range(len(ls)): if ls[i]==0: ls[i]=10 print(sum(ls))