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