#yuki656 s=raw_input() res=0 for i in xrange(len(s)): if s[i]=='0': res+=10 else: res+=int(s[i]) print res