using System; namespace yukicoder { class Program { static void Main(string[] args) { int L = int.Parse(Console.ReadLine()); int M = int.Parse(Console.ReadLine()); int N = int.Parse(Console.ReadLine()); //合計金額 int sum = L*100 + M*25 + N; //1000円札枚数 int a = sum / 1000; //1000円札合計金額 int b = a * 1000; //お札を取り除いた金額 int c = sum - b; int x = 0; int y = 0; int z = 0; int w = 0; //100円の枚数 x = c / 100; //100円以下の金額 y = c % 100; //25円の枚数 z = y / 25; //1円枚数 w = y % 25; int ans = x + z + w; Console.WriteLine(ans); } } }