using System; public class Program { public static void Main() { var rValue = Console.ReadLine(); Console.WriteLine("{0}", Math.Abs("1000000007".Length - rValue.Length)); return; } }