using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { string input = Console.ReadLine(); string str = "1000000007"; int ans = input.Length - str.Length; if(ans<0) { ans = ans * -1; } Console.WriteLine(ans); } } }