using System; class A { static void Main() => Console.WriteLine((Console.ReadLine().Length + 1) / 2); }