a = list(input()) for i , j in enumerate(a): if j =="0": a[i] = "10" print(sum(map(int,a)))