from pprint import pprint def main(): s=input() cnt=0 for i in range(len(s)): if int(s[i])==0: cnt+=10 else: cnt+=int(s[i]) print(cnt) if __name__ == "__main__": main()