using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace programPractice { class Program { static void Main(string[] args) { var date = Console.ReadLine().Split(); int[] iArray = new int[5]; int sum = 0; for (int i = 0; i < 5; i++) { iArray[i] = Int32.Parse(date[i]); if (iArray[i] % 15 == 0) { sum += 8; } else if (iArray[i] % 3 == 0) { sum += 4; } else if (iArray[i] % 5 == 0) { sum += 4; } else { sum += date[i].Length; } } Console.WriteLine(sum); } } }