using System; using System.Collections.Generic; using System.Linq; using System.IO; class Program { static void Main() { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; var s = Console.ReadLine(); if (s != s.Trim()) { Console.WriteLine("unexpected spase"); return; } var a = s.Split().Select(int.Parse).ToArray(); Array.Sort(a); int ans = (a[1] + a[2] + a[3] + a[4]) * 25; sw.WriteLine("{0}.{1:00}", ans / 100, ans % 100); sw.Flush(); } }