using System; class test1 { static void Main() { int L = int.Parse(Console.ReadLine()); int M = int.Parse(Console.ReadLine()); int N = int.Parse(Console.ReadLine()); int a, b, c; a = N / 25; M = M + a; N = N % 25; b = M / 4; L = L + b; M = M % 4; L = L % 10; c = L + M + N; Console.WriteLine(c); } }