using System;

namespace TestProject
{
	class MainClass
	{
		public static void Main(string[] args)
		{

			string s = Console.ReadLine();
			int n = s.IndexOf("xx");
			n = (n == -1) ? s.Length : n;
			Console.WriteLine(n);
		}
	}
}