using System;
					
public class Program
{
	public static void Main()
	{
		
		string S = Console.ReadLine();
		
		int num = 0;
		
		for(int i = 0; i < 4; i++)
		{
			if(S[i].ToString() == "+"){
				num += 1;
				
			}else{
				num -= 1;
			}
		}
		
		
		Console.WriteLine(num);
		
		Console.WriteLine("Hello World");
	}
}