using System; public class Hello{ public static void Main(){ int a = int.Parse(Console.ReadLine().Trim()); int b = int.Parse(Console.ReadLine().Trim()); int c = int.Parse(Console.ReadLine().Trim()); int total = 0; b = b + (c / 25); total = total + (c % 25); a = a + (b / 4); total = total + (b % 4); total = total + (a % 10); Console.WriteLine(total); } }