using System; public class Program { public static void Main(string[] args) { int L = 0, M = 0, N = 0; L = int.Parse(Console.ReadLine()); M = int.Parse(Console.ReadLine()); N = int.Parse(Console.ReadLine()); var total = 100 * L + 25 * M + N; var coins = (total % 1000) / 100; coins += (total % 100) / 25; coins += (total % 25); Console.WriteLine(coins); } }