Capitalization is writing a word with its first letter as a capital letter. Your task is to capitalize the given word.

Note, that during capitalization all the letters except the first one remains unchanged.
A single line contains a non-empty word. This word consists of lowercase and uppercase English letters. The length of the word will not exceed 10<sup class="upper-index">3</sup>.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Oct  2 16:23:50 2023

@author: 黄原明 2300011798
"""

n=int(input())
k=0
for i in range(n):
    s=input()
    if s=='++X' or s=='X++':
        k+=1
    if s=='--X' or s=='X--':
        k=k-1
print(k)
#注意不犯低级错误，比如大写X写成小写x。        
