using System; class P { static void Main() { int l = int.Parse(Console.ReadLine()); int m = int.Parse(Console.ReadLine()); int n = int.Parse(Console.ReadLine()); int s = 100 * l + 25 * m + 1 * n; l = 0; m = 0; n = 0; while (0 < s) { if (100 <= s) { s -= 100; l++; } else if (25 <= s) { s -= 25; m++; } else { s--; n++; } } Console.WriteLine(l + m + n); } }