#include <stdio.h>

int main(void){
   char num1, num2, num3, num4;
   printf("S : ")
   scanf("%d%d%d%d", &num1, &num2, &num3, &num4);
  int first = 0;
  if(num1 == +){
     first++
  }else{
     first--
  }
  if(num2 == +){
     first++
  }else{
     first--
  }
  if(num3 == +){
     first++
  }else{
     first--
  }
  if(num4 == +){
     first++
  }else{
     first--
  }
  printf("first:%d, first);
}