print(sum(int(i) or 10 for i in input()))