v=0 System.in.eachLine{'-_'.any{c->v+=c=it.count(c);c&&println(v)}}