s=input() num_line=list(s) mount=0 for num in num_line: if int(num)==0: mount+=10 else: mount+=int(num) print(mount)