using System; namespace ConsoleApp11 { class Program { static void Main(string[] args) { int x = 0; int y = 0; int z = 0; int L = int.Parse(Console.ReadLine()); int M = int.Parse(Console.ReadLine()); int N = int.Parse(Console.ReadLine()); x = (L + (M + (N / 25)) / 4) % 10; y = (M + (N / 25)) % 4; z = N % 25; Console.WriteLine(x + y + z); } } }