using System; class Program { static void Main() { int L = int.Parse(Console.ReadLine()); int M = int.Parse(Console.ReadLine()); int N = int.Parse(Console.ReadLine()); int total = L * 100 + M * 25 + N * 1; int result = 0; if(total % 100 > 0){ result += total / 100; total = total / 100; } if(total % 25 > 0){ result += total / 100; total = total / 100; } if(total > 0){ result += total; total = total / 100; } Console.WriteLine(result); } }