using System; using System.IO; using System.Linq; namespace ConsoleApp4 { class Program { static void Main() { var C = Console.ReadLine(); if (C.Contains("10")) { var _contains10 = C.Length; var _notContains10 = C.Split("10").Length - 1; Console.WriteLine(_contains10 - _notContains10); } else { Console.WriteLine(C.Length - 1); } } } }