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 % 25; y = (M + (L / 25)) % 4; z = ((N + (M + (L / 25)) / 4)) % 10; Console.WriteLine(x + y + z); } } }