'use strict'

const main = input => {
	const args = input.split('\n').map(arg => arg.split(' '))
	const S = args[0][0]
	let cnt = 0
	if (S[0] === '+') cnt++
	if (S[1] === '+') cnt++
	if (S[2] === '+') cnt++
	if (S[3] === '+') cnt++
	console.log( cnt - (4 - cnt) )
}

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