print(sum(int(i) if int(i) > 0 else 10 for i in input()))