using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Final_Competition { class Program { static void Main(string[] args) { int numberDancer = int.Parse(Console.ReadLine()); double points = double.Parse(Console.ReadLine()); string season = Console.ReadLine().ToLower(); string location = Console.ReadLine(); var price = 0.0; var razhodi = 0.0; var TotalPrice = 0.0; if (season== "summer") { if (location== "Bulgaria") { price = points * numberDancer; razhodi = price * 0.05; TotalPrice = price - razhodi; } else if (location== "Abroad") { price = numberDancer * points; razhodi = price * 0.10; var bonus = price * 0.50; TotalPrice = (bonus + price) - razhodi; } } else if (season=="winter") { if (location == "Bulgaria") { price = points * numberDancer; razhodi = price * 0.08; TotalPrice = price - razhodi; } else if (location == "Abroad") { price = numberDancer * points; razhodi = price * 0.15; var bonus = price * 0.50; TotalPrice = (bonus+ price) - razhodi; } } var Charity = TotalPrice-(TotalPrice * 0.75); var MoneyForCharity = TotalPrice-Charity; var MoneyPerDancer = (TotalPrice - MoneyForCharity) / numberDancer; Console.WriteLine($"Charity - {MoneyForCharity:F2}"); Console.WriteLine($"Money per dancer - {MoneyPerDancer:F2}"); } } }