The classic programming language of Bitland is Bit++. This language is so peculiar and complicated.

The language is that peculiar as it has exactly one variable, called *x*. Also, there are two operations:
 -  Operation ++ increases the value of variable *x* by 1. -  Operation -- decreases the value of variable *x* by 1. 
A statement in language Bit++ is a sequence, consisting of exactly one operation and one variable *x*. The statement is written without spaces, that is, it can only contain characters "+", "-", "X". Executing a statement means applying the operation it contains.

A programme in Bit++ is a sequence of statements, each of them needs to be executed. Executing a programme means executing all the statements it contains.

You're given a programme in language Bit++. The initial value of *x* is 0. Execute the programme and find its final value (the value of the variable when this programme is executed).
The first line contains a single integer *n* (1 ≤ *n* ≤ 150) — the number of statements in the programme.

Next *n* lines contain a statement each. Each statement contains exactly one operation (++ or --) and exactly one variable *x* (denoted as letter «X»). Thus, there are no empty statements. The operation and the variable can be written in any order.
'''
while(True):
	def One_Digit(n):
		while(n>=10):
			n=sum(int(digit)
			for(digit) in str(n))
		return(n)
	n=int(input("Введите число:"))
	if(n>0 and n<1000000000000):
		otvet=One_Digit(n)
		print("Сумма цифр:",otvet)
	if(n>1000000000000):
		print("Число должно быть меньше 1000000000000!")
	if(n<0):
		print("Число должно быть положительным!")
'''
'''
while(True):
	x=int(input("Введите число:"))
	if(x%6==0 and x<360):
		otv=60-x/6
		print("Минут осталось:",int(otv))
	if(x>360):
		print("Число должно быть меньше 360!")
	if(x%6):
		print("Число должно делиться на шесть!")
'''
'''
while(True):
	n=int(input("Введите число:"))
	otv=n+2
	print("Можно насчитать",otv,"ног(и)")
'''
'''
while(True):
	index=int(input("Введите индекс:"))
	index_str=str(index)
	index_len=len(index_str)
	if(index_len==6 and index_len<1000000000):
		print("YES")
	else:
		print("NO")
'''
'''
while(True):
	index=input("Введите число:")
	if(len(index) == 6 and index.isdigit()):
		print("YES")
	else:
		print("NO")
'''
'''
while(True):
	print("1.Введите количество столбиков на которых держится забор.")
	print("2.Введите сколько дощечек в каждой секции забора.")
	N,K=input(">>>").split()
	n=int(N)
	k=int(K)
	if(n==3):
		print("0")
	elif(n==4):
		print("20")
	else:
		n=n-3
		a=n-1
		L=k-1
		print(20*n+3*2*a+k*12*a+a*5*L)
'''
'''
num1=int(input("Введите десятеричный формат:"))
num2=num1/16
num3=num2/16
if(num3==num3,.14):
	num4="E"
	num5=num3/16
	print(num5,num4,num3)
'''
'''
while(True):
	dos=int(input("Введите число:"))
	print(f'Шестнадцатеричное: {dos:X}')
'''
'''
while(True):
	print("1.Первые два значения-чётные.")
	print("2.Вторые два значения-нечётные.")
	a,b,x,y=map(int,input(">>>").split())
	max_int=max(a,b,x,y)
	otv2_1=0
	otv2_2=0
	otv2_3=0
	if(max_int==a):
		otv1=max_int+b
		otv2=max_int+x
		otv3=max_int+y
		if(otv1%2!=0):
			otv2_1=otv1
		if(otv2%2!=0):
			otv2_2=otv2
		if(otv3%2!=0):
			otv2_3=otv3
		otv_str=otv2_1,otv2_2,otv2_3
		max_int2=max(otv_str)
		print(max_int2)
	if(max_int==b):
		otv1=max_int+a
		otv2=max_int+x
		otv3=max_int+y
		if(otv1%2!=0):
			otv2_1=otv1
		if(otv2%2!=0):
			otv2_2=otv2
		if(otv3%2!=0):
			otv2_3=otv3
		otv_str=otv2_1,otv2_2,otv2_3
		max_int2=max(otv_str)
		print(max_int2)
	if(max_int==x):
		otv1=max_int+a
		otv2=max_int+b
		otv3=max_int+y
		if(otv1%2!=0):
			otv2_1=otv1
		if(otv2%2!=0):
			otv2_2=otv2
		if(otv3%2!=0):
			otv2_3=otv3
		otv_str=otv2_1,otv2_2,otv2_3
		max_int2=max(otv_str)
		print(max_int2)
	if(max_int==y):
		otv1=max_int+a
		otv2=max_int+b
		otv3=max_int+x
		if(otv1%2!=0):
			otv2_1=otv1
		if(otv2%2!=0):
			otv2_2=otv2
		if(otv3%2!=0):
			otv2_3=otv3
		otv_str=otv2_1,otv2_2,otv2_3
		max_int2=max(otv_str)
		print(max_int2)
'''
''''
while(True):
	import random
	x=random.choice(["Паша","Петя"])
	input("Нажмите Enter чтобы узнать кто победил в споре")
	print("В споре победил:",x)
'''
'''
n = int(input())
print(-1 if n <4 else(n+3)//5)
'''
'''
n = int(input())
m = int(input())
if n > m:
   n = m
L = 0
R = n + 2
while R - L > 1:
   mid = (L + R) // 2
   if (mid+n)*(n-mid+1)//2>=m:
      L=mid
   else:
      R=mid
if(L+n) * (n - L + 1) // 2 < m:
   print(0)
else:
   for i in range(R, n + 1):
      print(i)
   s=(R+n)*(n-R+1)//2
   if(m-s>0):
      print(m-s)
'''
'''
num1,num2=map(int,input("").split())
num3,num4=map(int,input("").split())
min1=min(num1,num2)
min2=min(num3,num4)
print(min1+1,",",min2+1)
'''
'''
def find_min_number(N):
    if N == 0:
        return -1
    if N == 1:
        return 1
    digits = []
    for i in range(9, 1, -1):
        while N % i == 0:
            digits.append(i)
            N /= i
    if N != 1:
        return -1
    return int(''.join(map(str, digits[::-1])))
N = int(input())
min_number = find_min_number(N)
print(min_number)
'''
'''
a=int(input("Введите число истинных заявлений:"))
b=a+1
c=b+1
d=c+1
print("Рыцарь сделал первое заявление:",a,"+1=",b)
print("Лжец сделал заявление:",b,"+1=",c)
print("Рыцарь сделал второе заявление:",c,"+1=",d)
print("Ответ:",d)
'''
'''
n = int(input())
prohods=1
if(n<=6):
    prohods=1
    print(prohods)
if(n>6):
	prohods+=(n-6)//4+1
	print(prohods)
'''
'''
a=int(input(""))
b=int(input(""))
c=int(input(""))
d=a+b+c
print(d)
'''
'''
n=int(input())
people=1
if(n%2==0):
    people+=n//2-1
else:
    people+=(n-1)//2+3
print(people)
'''
'''
n=int(input())
t=input()
upper_count=sum(1 for c in t if c.isupper())
lower_count=sum(1 for c in t if c.islower())
if(abs(upper_count-lower_count)<=1):
    print("JOKE")
else:
    print("SERIOUS")
'''
'''
n = int(input())
houses = list(map(int, input().split()))
max_distance = houses[-1] - houses[0]
for i in range(1, n):
    max_distance = max(max_distance, houses[i] - houses[0], houses[-1] - houses[i])
print(max_distance)
'''
'''
n = int(input())
arr = list(map(int, input().split()))

dp = [0] * (n+1)
for i in range(n):
    if arr[i] % 2 == 0:
        dp[1] = max(dp[1], arr[i])
    for j in range(i, 0, -1):
        if (arr[i] + dp[j]) % 2 == 0:
            dp[j+1] = max(dp[j+1], arr[i] + dp[j])

print(*dp[1:])
'''
'''
y=int(input(""))
if(y%4):
	print("NO")
else:
	print("YES")
'''
'''
a,b,c=map(int,input("").split())
otv1=a*b
otv2=otv1*c
print(otv2)
'''
'''
a=int(input())
result=[]
for k in range(a * 10, (a + 1) * 10):
    for d in range(2, k + 1):
        if k % d == 0 and sum(int(digit) for digit in str(k)) % d == 0:
            result.append(k)
print(' '.join(str(num) for num in result))
'''
'''
N = int(input())
S = input()

max_troll=0
max_troll_string = ""

for i in range(N):
    for j in range(i + 1, N + 1):
        substring = S[i:j]
        if substring.count("A") > 0 and substring.count("Z") > 0:
            if len(substring) > max_troll:
                max_troll = len(substring)
                max_troll_string = substring

print(max_troll_string)
'''
'''
n, k = map(int, input().split())
array = list(map(int, input().split()))

count_divisible_two = 0

for _ in range(k):
    result = []
    for i in range(len(array)):
        for j in range(i + 1, len(array)):
            result.append(array[i] * array[j])
    array = result

for num in array:
    if num % 2 == 0:
        count_divisible_two += 1

print(count_divisible_two)
'''
'''
n=int(input(""))
f=int(input(""))
if(f==0):
    print((n-2)**3)
elif(f==1):
    print(6*(n-2)**2)
elif(f==2):
    print(12*(n-2))
elif(f==3):
    print(8)
'''
'''
a=int(input(""))
b=int(input(""))
c=int(input(""))
max_num=max(a,b,c)
min_num=min(a,b,c)
sum_num=a+b+c-max_num-min_num
num=0
while(min_num+sum_num>max_num):
	max_num=max_num-1
	min_num=min_num-1
	sum_num=sum_num-1
	num=num-1
	if(min_num+sum_num<=max_num):
		print(num*-1)
'''
'''
num1=int(input(""))
num2=int(input(""))
num3=int(input(""))
result="False"
if(num1>num2+num3):
	result="True"
print(result)
'''
'''
num1=input("Введите букву клетки: ")
num2=int(input("Введите цифру клетки: ")
'''
'''
while(True):
	input_str=input("Введите координаты клетки: ")
	word,num1=input_str
	result="White"
	num2=int(num1)
	if(word=="A" or word=="C" or word=="E" or word=="G"):
		num2+=1
	if(word=="a" or word=="c" or word=="e" or word=="g"):
		num2+=1
	if(word=="B" or word=="D" or word=="F" or word=="H"):
		num2+=0
	if(word=="b" or word=="d" or word=="f" or word=="h"):
		num2+=0
	if(num2%2==0):
		result="Black"
		print(result)
		print("-------------------------------")
	if(num2%1 and not num2%2):
		result="White"
		print(result)
		print("-------------------------------")
	else:
		print("Координаты введены неверно!")
'''
'''
x=int(input(""))
y=int(input(""))
result=""
for x in range(0, int(x)):
	for y in range(0, int(y)):
		if(x+y==y and x*y==y):
			result=str(x)+""+str(y)
		print(result)
'''
'''
text=input("Введите текст:")
with open("Text.txt", "w") as file:
    file.write(text)
with open("Text.txt","r") as file:
    file_read=file.read()
'''
'''
N,K=map(int,input().split())
num1=(N+K-1)//K
print(num1)
'''
'''
n=int(input())
divisors_sum=0
for i in range(1, n+1):
    if(n%i==0):
        divisors_sum+=i
print(divisors_sum)
'''
'''
n = int(input())
if n == 1:
    print(0)
else:
    print(n-1)
'''
'''
days=int(input())
flowers=['G', 'C', 'V']
center_index=1
for i in range(days):
    flowers[center_index], flowers[center_index+1] = flowers[center_index+1], flowers[center_index]
    flowers[center_index-1], flowers[center_index] = flowers[center_index], flowers[center_index-1]
print(''.join(flowers))
'''
'''
n=int(input())
if(n and(n-1)==0):
    print(n-1)
else:
    m=1
    while m<n:
        m*=2
    print(m//2)
'''
'''
k=int(input())
def Buy(k):
    for i in range(k//3+1):
        for x in range(k//5+1):
            if(i*3+x*5==k):
                return "Yes"
    return "No"
print(Buy(13))
'''
'''
r=int(input())
if(r%2==0):
	num1=r//2
	print(num1)
elif(r==1):
	num1=0
	print(num1)
else:
	print(r)
'''
'''
s,d,f=map(int,input().split())
num1=s*(d*f*2)
print(num1)
'''
'''
t = int(input())
for i in range(t):
    s = input()
    codeforces = "codeforces"
    diff = 0
    for j in range(10):
        if s[j] != codeforces[j]:
            diff += 1
    print(diff)
'''
'''
a,b=map(int,input().split())
num1=a/float(b)
if(num1>0 and num1<0.5):
	print(2)
elif(num1>0 and num1<1.0):
	print(2)
elif((num1-int(num1))>0 and (num1-int(num1))<=0.5):
	print(int(num1)*2+1)
elif((num1-int(num1))>0.5 and (num1-int(num1))<=1.0):
	print(int(num1)*2+2)
else:
	print(int(num1)*2)
'''
'''
a,b,c=map(int,input().split())
print((a+b+c)//2)
'''
'''
n=int(input())
second_digit=9
third_digit=9-n
result=str(second_digit)+str(third_digit)
print(str(n)+result)
'''
'''
num1,num2=[int(num) for num in input().split()]
num3,num4=[int(num) for num in input().split()]
num5,num6=[int(num) for num in input().split()]
otv1=num1-num5
otv2=num2-num4
print(otv1,otv2)
'''
'''
N,M,P,L=map(int,input().split())
num1=M+P-N+L
num2=M-num1
num3=P-num1
print(num1,num2,num3)
'''
'''
n,k=map(int,input().split())
num1=2*k
print(num1-19)
'''
'''
s,t=map(int,input().split())
if(t>s):
    print(t-s)
else:
    print(12-s+t)
'''
'''
l,w,h=map(int,input().split())
print((l*h*2+w*h*2+15)//16)
'''
'''
n = int(input())
if(n>0 and (n&(n-1))==0):
    print('YES')
else:
    print('NO')
'''
'''
a,b=map(int,input().split())
print(abs((b+1)//2-(a+1)//2))
'''
'''
n=int(input())
num1=0
num2=0
while(num2!=n):
	num2=num2+num1
	num1=num1+1
num3=num1-1
print(num3)
'''
'''
scores=[]
for _ in range(4):
    a,b=map(int, input().split())
    scores.append((a, b))
team1_score=sum(a for a, _ in scores)
team2_score=sum(b for _, b in scores)

if(team1_score>team2_score):
    print(1)
elif(team1_score < team2_score):
    print(2)
else:
    print("DRAW")
'''
'''
first_code = input().strip()
second_code = input().strip()
last_code = first_code
for i in range(10000):
    current_code = f'{i:04}'
    if(current_code==last_code):
        continue
    if(current_code==second_code):
        print("YES")
        break
    last_code = current_code
else:
    print("NO")
'''
'''
a,b=map(int,input().split())
if(a<b):
	a,b=b,a
print((a+1)//2,b)
'''
'''
b=int(input())
a=int(input())
if(b%2==0):
	print("YES")
elif(b==0):
	print("YES")
elif(a%2!=0):
	print("YES")
else:
	print("NO")
'''
'''
x=input()
n=int(input())
if(x=="Home" and n==1):
    print("YES")
else:
    print("NO")
'''
'''
n=int(input())
num1=-1
num2=-1
for i in range(n):
    a,b=map(int,input().split())
    if(b==1):
        if(num1==-1 or a>num1):
            num1=a
            num2=i+1
print(num2)
'''
'''
a=int(input())
num1=a+a//2
num1=num1+num1//2
num1=num1+num1//2
a=a+a/2
a=a+a/2
a=a+a/2
if(num1==a):
	print("Yes")
else:
	print("No")
'''
'''
n,k=map(int,input().split())
num1=n-k
num2=k-num1
print(num2)
'''
'''
a,b,c,d=map(int,input().split())
if(d>=c):
	d=d-c-1
	num1=d*(a+2*b)+2*b
else:
	c=c-d+1
	num1=(c-1)*(a+2*b)+a
print(num1)
'''
'''
n=int(input())
num1=0
num2=0
for _ in range(n):
    num3=int(input())
    if(num3==1):
        num1=num1+1
    else:
        num2=num2+1
num4=min(num1,num2)
print(num4)
'''
'''
def find_approx_equal_numbers(n,m):
    num1=n//m
    num2=n%m
    num3=[]
    for _ in range(m-num2):
        num3.append(num1)
    for _ in range(num2):
        num3.append(num1+1)
    return ' '.join(map(str,num3))
n,m=map(int, input().split())
num4=find_approx_equal_numbers(n,n)
print(num4)
'''
'''
n=int(input())
f=[0,1]
num1=n+1
for i in range(2,num1):
	f.append(f[i-1]+f[i-2])
num2=f[n]
print(num2)
'''
'''
button_sequence=input()
max_floor=0
min_floor=0
current_floor=0
for button in button_sequence:
    if button=='1':
        current_floor+=1
    elif button=='2':
        current_floor-=1
    max_floor=max(max_floor,current_floor)
    min_floor=min(min_floor,current_floor)
total_floors=max_floor-min_floor+1
print(total_floors)
'''
'''
n=input()
count=0
for digit in n:
    if digit in ['0','6','9']:
        count+=1
    elif digit=='8':
        count+=2
print(count)
'''
'''
n=input()
num1=ord(n[0])-ord('A')
num2=int(n[1])-1
if(num1+num2)%2==0:
    print("BLACK")
else:
    print("WHITE")
'''
'''
a,b=map(int,input().split())
num1=max(2*b+40,2*a+39)
print(num1)
'''
'''
a,b,c,e,f,g=map(int,input().split())
num1=sorted([a,b,c],reverse=True)
num2=sorted([e,f,g],reverse=True)
num3=sum([num1*num2 for num1,num2 in zip(num1,num2)])
print(num3)
'''
'''
w=input()
x=int(input())
if(w=="Home" and x%2==0):
	print("YES")
if(w=="Home" and x%2!=0):
	print("YES")
if(w=="School" and x%2==0):
	print("NO")
if(w=="School" and x%2!=0):
	print("YES")
'''
'''
num1=[1,"mon","tue","wed","thu","fri","sat","sun"]
x,y=map(int,input().split())
if(x%y==0 or y%x==0):
    print(max(y,x),num1[(max(y,x)%7)+1])
else:
    print(y*x,num1[(y*x%7)+1])
'''
'''
n=int(input())
num1=1
num2=1
while(num2<n):
	if(num2%2!=0):
		num1=num1+(num2+1)
	else:
		num1-=(num2+1)
	num2=num2+1
if(num1%2==0):
	print("black")
else:
	print("grimy")
'''
'''
n=input().strip()
n=n.replace("00000000000000000000000001","y")
n=n.replace("001","c")
n=n.replace("01","b")
n=n.replace("1","a")
print(n)
'''
'''
t=1
arr=[]
for i in range(3):
	arr.append(list(input()))
for i in range(3):
	if(arr[i][0]==arr[i][1]==arr[i][2] or arr[0][i]==arr[1][i]==arr[2][i]):
		if arr[i][i]=='X':
			print('Win')
			break
		elif(arr[i][i]=='O'):
			print('Lose')
			break
if(arr[0][0]==arr[1][1]==arr[2][2] or arr[0][2]==arr[1][1]==arr[2][0]):
	if(arr[1][1]=='X'):
		print('Win')
	elif(arr[1][1]=='O'):
		print('Lose')
	else:
		t=0
		print('Draw')
elif t:
	print('Draw')
'''
'''
n,m=map(int,input().split())
if(n==0 and m!=0):
    print('Impossible')
else:
    if(m==0):
        print(n,n)
    elif(n==0 and m==0):
        print("0","0")
    else:
        n_max = (n+m)-1
        if(m>=n):
            n_min=(m-n)+n
        else:
            n_min=n
        print(n_min,n_max)
'''
'''
s,p=map(int, input().split())
d=s*s-4*p
if(d<0):
    print("Impossible")
elif d == 0:
    x = y = s // 2
    if x > 0 and x <= 1000:
        print(x, y)
    else:
        print("Impossible")
else:
    x1 = (s + int(d ** 0.5)) // 2
    y1 = s - x1
    x2 = (s - int(d ** 0.5)) // 2
    y2 = s - x2
    if x1 > 0 and x1 <= 1000 and y1 > 0 and y1 <= 1000:
        if x2 > 0 and x2 <= 1000 and y2 > 0 and y2 <= 1000:
            print(min(x1, y1), max(x1, y1))
        else:
            print(min(x1, y1), max(x1, y1))
    elif x2 > 0 and x2 <= 1000 and y2 > 0 and y2 <= 1000:
        print(min(x2, y2), max(x2, y2))
    else:
        print("Impossible")
'''
'''
import re

n = int(input())
for i in range(n):
    s = input()
    if re.match("^[ABCEHKMOPTXY]{1}\d{3}[ABCEHKMOPTXY]{2}$", s):
        print("Yes")
    else:
        print("No")
'''
'''
a,b=input().split()
num1=0
num2=0
for i in range(4):
	if(a[i]==b[i]):
		num1=num1+1
	elif(a[i] in b):
		num2=num2+1
print(num1,num2)
'''
'''
n=input()
num1=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
num2=0
num3=""
for i in range(len(n)):
	if(n[i]=="1"):
		num3=num3+num1[i-num2]
		num2+=i-num2+1
print(num3)
'''
'''
n=int(input())
num1=list(input().split())
num2=n+1
print(num2)
'''
'''
s1=input()
s2=input()
if(len(s1)!=len(s2)):
    print("NO")
else:
    num1={}
    for num2 in s1:
        if num2 in num1:
            num1[num2]+=1
        else:
            num1[num2]=1
    for num2 in s2:
        if num2 in num1:
            num1[num2]-=1
            if num1[num2]<0:
                print("NO")
                break
        else:
            print("NO")
            break
    else:
        print("YES")
'''
'''
def F1(a,b):
    while(b):
        a,b=b,a%b
    return a
def F2(a,b):
    return a*b//F1(a,b)
def F3(a,b,c):
    return F2(F2(a,b), c)
a,b,c=map(int,input().split())
print(F2(F2(a,b),c))
'''
'''
n,m=map(int,input().split())
num1,num2=n,m
while(num2):
	num1,num2=num2,num1%num2
print(n*m//num1)
'''
'''
n=list(map(int,input().split()))
num1=sum(n)//27
print(num1)
'''
'''
n=int(input())
r=int(input())
c=int(input())
num1=min(n-r,n-c)+min(r-1,c-1)+1
num2=min(n-r,c-1)+min(r-1,n-c)+1
num3=num1+num2-2 
print(num3)
'''
'''
n=input()  
num1=0
for i in range(len(n)-4):
    if(n[i:i+5]==">>-->"):
        num1=num1+1
    elif(n[i:i+5]=="<--<<"):
        num1=num1+1
print(num1)
'''
num2=0
num1=int(input())
for i in range(num1):
	str1=input()
	if(str1=="X++"):
		num2=num2+1
	if(str1=="++X"):
		num2=num2+1
	if(str1=="X--"):
		num2=num2-1
	if(str1=="--X"):
		num2=num2-1
print(num2)

