using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoder_32 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int M = int.Parse(Console.ReadLine()); int L = int.Parse(Console.ReadLine()); int O = 0; for (int l = L; l >= 25; l -= 25) { L -= 25; M++; } for(int m = M; m >= 4; m -= 4) { M -= 4; N++; } for(int n = N; n >= 10; n -= 10) { N -= 10; O++; } Console.WriteLine(L + N + M); Console.ReadLine(); } } }