#!/usr/bin/env python def main(): ins = input().strip() inn = [int(x) for x in list(ins)] ans = 0 for n in inn: if n == 0: ans += 10 else: ans += n print(ans) if __name__ == '__main__': main()