a = list(map(int,list(input()))) print(sum(a) + a.count(0)*10)