using System; public class Program { public static void Main(string[] args) { int L = 0, M = 0, N = 0; L = int.Parse(Console.ReadLine()); M = int.Parse(Console.ReadLine()); N = int.Parse(Console.ReadLine()); if (L == 0 && M == 0 && N == 0) { Console.WriteLine(0); return; } while (N >= 25 ) { N -= 25; M += 25; } while (M >= 4) { M -= 4; L += 1; } while (L >= 10) { L -= 10; } Console.WriteLine(N + M + L); } }