"use strict"

function main(input) {
    ans = input.split('')
        .map(x => Number(x + 1))
        .reduce((x, y) => x + y)
    console.log(ans)


}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
