v=0 for i in input(): v+=int(i) if i!="0" else 10 print(v)