using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoder { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()) * 100; int b = int.Parse(Console.ReadLine()) * 25; int c = int.Parse(Console.ReadLine()); int sum = a + b + c; sum = (sum / 1000) * 1000; a = sum / 100; sum = sum - (a * 100); b = sum / 25; sum = sum - (b * 25); c = sum; Console.WriteLine("{0}", a + b + c); } } }