#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;
}

  

 posted on 2019-11-06 10:15  ComMario  阅读(132)  评论(0编辑  收藏  举报