#include <stdio.h>

int main()
{
	int x = 1;
	char takahashi[5];
	printf("入力：");

	
	scanf_s("%s", takahashi, 5);
	
	
	printf("%s\n", takahashi);

	for(int i = 0; i < 4; i++)
	{
		if (takahashi[i] == '+')
		{
			x++;
			printf("+\n");
		}
		else if (takahashi[i] == '-')
		{
			x--;
			printf("-\n");
		}	
	}
	return x;
}