using System; namespace yukicoder { 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 a = 0; a = L / 25; if (L / 25 == 0) { a = L; } int b = 0; int m = M * 25; b = m / 100; if(m/100==0) { b = M; } int c = 0; int n = N * 100; int cc = n / 1000; if(cc==0) { c = N; } int ans = a + b + c; Console.WriteLine(ans); } } }