using System; using System.Linq; public class Program { static void Main() { var InputValue = Console.ReadLine().Split(' ').Select(x => Convert.ToInt32(x)); int StringCount = 0; foreach(var Value in InputValue) { if (Value % 15 == 0) { StringCount += 8; continue; } if(Value % 5 == 0 || Value % 3 == 0) { StringCount += 4; continue; } StringCount += InputValue.ToString().Length; } Console.WriteLine(StringCount); } }