const process = (input: string[]): number => {
	let ret = 0
	for (let i = 0; i < input.length; i++) {
		if (input[i] === "+") {
			ret++
		} else {
			ret--
		}
	}
	return ret
}

const Main = (input: string): void => {
	const ary = input.split("")
	console.log(process(ary))
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"))