public static void Main()
int numberOfNights = int.Parse(Console.ReadLine());
var destination = (Console.ReadLine().ToLower());
var transport = (Console.ReadLine().ToLower());
var priceByTrain = 2 * 22.30 + 3 * 12.50;
var priceByBus = 2 * 45 + 3 * 37;
var priceByPlane = 2 * 90 + 3 * 68.50;
var dogPrice = (adultPrice + childrenPrice) * 0.25;
var totalPriceForStay = adultPrice + childrenPrice + dogPrice;
if(destination == "miami")
if(numberOfNights >= 1 && numberOfNights <= 10)
var ltPrice = numberOfNights * 2 * 24.99;
childrenPrice = numberOfNights * 3 * 14.99;
totalPrice = totalPriceForStay + priceByTrain;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "bus")
totalPrice = totalPriceForStay + priceByBus;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "airplane")
totalPrice = totalPriceForStay + priceByPlane;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(numberOfNights >= 10 && numberOfNights <= 15)
adultPrice = numberOfNights * 2 * 22.99;
childrenPrice = numberOfNights * 3 * 11.99;
totalPrice = totalPriceForStay + priceByTrain;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "bus")
totalPrice = totalPriceForStay + priceByBus;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "airplane")
totalPrice = totalPriceForStay + priceByPlane;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(numberOfNights > 15)
adultPrice = numberOfNights * 2 * 20;
childrenPrice = numberOfNights * 3 * 10;
totalPrice = totalPriceForStay + priceByTrain;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "bus")
totalPrice = totalPriceForStay + priceByBus;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "airplane")
totalPrice = totalPriceForStay + priceByPlane;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(destination == "canary island")
if(numberOfNights >= 1 && numberOfNights <= 10)
adultPrice = numberOfNights * 2 * 32.50;
childrenPrice = numberOfNights * 3 * 28.50;
totalPrice = totalPriceForStay + priceByTrain;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "bus")
totalPrice = totalPriceForStay + priceByBus;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "airplane")
totalPrice = totalPriceForStay + priceByPlane;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(numberOfNights >= 10 && numberOfNights <= 15)
adultPrice = numberOfNights * 2 * 30.50;
childrenPrice = numberOfNights * 3 * 25.60;
totalPrice = totalPriceForStay + priceByTrain;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "bus")
totalPrice = totalPriceForStay + priceByBus;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "airplane")
totalPrice = totalPriceForStay + priceByPlane;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(numberOfNights > 15)
adultPrice = numberOfNights * 2 * 28;
childrenPrice = numberOfNights * 3 * 22;
totalPrice = totalPriceForStay + priceByTrain;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "bus")
totalPrice = totalPriceForStay + priceByBus;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "airplane")
totalPrice = totalPriceForStay + priceByPlane;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(destination == "philippines")
if(numberOfNights >= 1 && numberOfNights <= 10)
adultPrice = numberOfNights * 2 * 42.99;
childrenPrice = numberOfNights * 3 * 39.99;
totalPrice = totalPriceForStay + priceByTrain;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "bus")
totalPrice = totalPriceForStay + priceByBus;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "airplane")
totalPrice = totalPriceForStay + priceByPlane;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(numberOfNights >= 10 && numberOfNights <= 15)
adultPrice = numberOfNights * 2 * 41;
childrenPrice = numberOfNights * 3 * 36;
totalPrice = totalPriceForStay + priceByTrain;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "bus")
totalPrice = totalPriceForStay + priceByBus;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "airplane")
totalPrice = totalPriceForStay + priceByPlane;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(numberOfNights > 15)
adultPrice = numberOfNights * 2 * 38.50;
childrenPrice = numberOfNights * 3 * 32.40;
totalPrice = totalPriceForStay + priceByTrain;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "bus")
totalPrice = totalPriceForStay + priceByBus;
Console.WriteLine(Math.Round(totalPrice, 3));
else if(transport == "airplane")
totalPrice = totalPriceForStay + priceByPlane;
Console.WriteLine(Math.Round(totalPrice, 3));