using System; using System.Numerics; public class Program { static void Main() { var l = ReadLineLong()[0] * 100; var m = ReadLineLong()[0] * 25; var n = ReadLineLong()[0]; var total = (l + m + n) % 1000; var c = total / 100; total %= 100; c += total / 25; total %= 25; c += total; Console.WriteLine(c); } static string[] ReadLineSplit() { var s = Console.ReadLine() ?? ""; return s.Split(' '); } static long[] ReadLineLong() { var s = Console.ReadLine() ?? ""; return s.Split(' ').Select(long.Parse).ToArray(); } }