#include <iostream> #include <string> using namespace std; int main() { int n, plus, sub; string ope; while(cin>>n) { plus=sub=0; while(n--) { cin>>ope; if(ope[1]=='-') ++sub; else ++plus; } cout<<plus-sub<<endl; } return 0; }