use std::io::Read;

fn main() {
    let mut buff = String::new();
    std::io::stdin().read_to_string(&mut buff).unwrap();
    let mut iter = buff.split_whitespace();

    let s: String = iter.next().unwrap().parse().unwrap();

    let x = s.matches('+').count();
    let y = s.matches('-').count();

    println!("{}", x - y);

    ()
}
