public static void Main()
int days = int.Parse(Console.ReadLine());
int cook = int.Parse(Console.ReadLine());
int cakes = int.Parse(Console.ReadLine());
int wafles = int.Parse(Console.ReadLine());
int pancakes = int.Parse(Console.ReadLine());
double cakePrice = cakes * 45;
double wafflePrice = waffle *5.80;
double pancakesPrice = pancakes *3.20;
double dayTotalPrice = cakePrice + wafflePrice + pancakesPrice;
double totalProfit = dayTotalPrice * cook;
double totalProfitAll = totalProfit * days;
double cost = totalProfitAll /8;
double finalprofit = totalProfitAll - cost;
Console.WriteLine($"{finalprofit:F2}");