program main
  implicit integer(a-z)
  character(4) s
  ans=0

  read(*,*)s

  do i=1,4
     if(s(i:i).eq."-") then
        ans=ans-1
     else
        ans=ans+1
     end if
  end do

  write(*,*)ans
end program main