public static void Main()
int flights = int.Parse(Console.ReadLine());
for (int i=0; i<flights; i++)
int adults = int.Parse(Console.ReadLine());
decimal adultPrice = decimal.Parse(Console.ReadLine());
int youths = int.Parse(Console.ReadLine());
decimal youthPrice = decimal.Parse(Console.ReadLine());
decimal fuelPrice = decimal.Parse(Console.ReadLine());
decimal fuelConsumption = decimal.Parse(Console.ReadLine());
int duration = int.Parse(Console.ReadLine());
decimal income = adults*adultPrice + youths*youthPrice;
decimal expense = fuelPrice*fuelConsumption*duration;
profit += income - expense;
avgProfit = profit/flights;
Console.WriteLine("You are ahead with {0:f3}$.", profit);
Console.WriteLine("We've got to sell more tickets! We've lost {0:f3}$.", profit);
Console.WriteLine("Overall profit -> {0:f3}$.", profit);
Console.WriteLine("Average profit -> {0:f3}$.", avgProfit);