using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { int thousand = 0; int hundred = 0; int twentyfive = 0; int one = 0; string l = Console.ReadLine(); hundred = int.Parse(l); string m = Console.ReadLine(); twentyfive = int.Parse(m); string n = Console.ReadLine(); one = int.Parse(n); while(one>=25) { twentyfive++; one = one - 25; } while(twentyfive>=4) { hundred++; twentyfive = twentyfive - 4; } while(hundred>=10) { thousand++; hundred = hundred - 10; } int ans = one + twentyfive + hundred ; Console.WriteLine(ans); } } }