using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int L = int.Parse(Console.ReadLine()); int M = int.Parse(Console.ReadLine()); int N = int.Parse(Console.ReadLine()); int ans = 0; if(N / 25 != 0) { M += N / 25; ans += N % 25; } else { ans += N; } if(M / 4 != 0) { L += M / 4; ans += M % 4; } else { ans += M; } if (L / 10 != 0) { ans += L % 10; } else { ans += L; } Console.WriteLine(ans); } } }