print(sum([s if s > 0 else 10 for s in map(int, list(input()))]))