using System; using System.IO; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Numerics; using System.Diagnostics; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using static System.Math; using static System.Console; namespace yukicoder { class Program { static void Main() { int L = int.Parse(Console.ReadLine()); int M = int.Parse(Console.ReadLine()); int N = int.Parse(Console.ReadLine()); // 1円を25円に両替 N = N % 25; M += N / 25; // 25円を100円に両替 L += M / 4; M = M % 4; // 100円を1000円に両替 L = L % 10; Console.WriteLine(L + M + N); } } }