let _ =
	let ans = ref 0 in
	for i = 0 to 3 do
    	let c =
	    	Scanf.scanf (if i <> 3 then "%c" else "%c\n") (fun c -> c) in
        if c = '+' then ans := !ans + 1
        else if c = '-' then ans := !ans - 1
        else ()
    done;
    !ans