https://codeforces.com/problemset/problem/282/A
#include<bits/stdc++.h>
using namespace std;
int t;
string s;
int ans;
int main(void)
{
cin>>t;
while(t--)
{
cin>>s;
if(s.find("+")!=-1) ans++;
else ans--;
}
cout<<ans;
return 0;
}
https://codeforces.com/problemset/problem/282/A
#include<bits/stdc++.h>
using namespace std;
int t;
string s;
int ans;
int main(void)
{
cin>>t;
while(t--)
{
cin>>s;
if(s.find("+")!=-1) ans++;
else ans--;
}
cout<<ans;
return 0;
}