int = 0
S = ["+", "-", "+", "+"]

if S[0] == "+" then
  int+=1
else
  int-=1
end
if S[1] == "+" then
  int+=1
else
  int-=1
end
if S[2] == "+" then
  int+=1
else
  int-=1
end
if S[3] == "+" then
  int+=1
else
  int-=1
end

print int
