static void Main(string[] args)
        {
            string[] inputCar = Console.ReadLine().Split();
            Car      car      = new Car(double.Parse(inputCar[1]), double.Parse(inputCar[2]), double.Parse(inputCar[3]));

            string[] inputTruck = Console.ReadLine().Split();
            Truck    truck      = new Truck(double.Parse(inputTruck[1]), double.Parse(inputTruck[2]), double.Parse(inputTruck[3]));

            string[] inputBus         = Console.ReadLine().Split();
            Bus      bus              = new Bus(double.Parse(inputBus[1]), double.Parse(inputBus[2]), double.Parse(inputBus[3]));
            int      numberOfCommands = int.Parse(Console.ReadLine());

            for (int i = 0; i < numberOfCommands; i++)
            {
                string[] commands       = Console.ReadLine().Split();
                string   currentCommand = commands[0] + " " + commands[1];
                double   currentNum     = double.Parse(commands[2]);

                if (currentCommand == "Drive Car")
                {
                    Console.WriteLine(car.Driving(currentNum, true));
                }
                else if (currentCommand == "Drive Truck")
                {
                    Console.WriteLine(truck.Driving(currentNum, true));
                }
                else if (currentCommand == "Drive Bus")
                {
                    Console.WriteLine(bus.Driving(currentNum, true));
                }
                else if (currentCommand == "DriveEmpty Bus")
                {
                    Console.WriteLine(bus.Driving(currentNum, false));
                }
                else if (currentCommand == "Refuel Car")
                {
                    car.Refuel(currentNum);
                }
                else if (currentCommand == "Refuel Truck")
                {
                    truck.Refuel(currentNum);
                }
                else if (currentCommand == "Refuel Bus")
                {
                    bus.Refuel(currentNum);
                }
            }

            Console.WriteLine(car.ToString());
            Console.WriteLine(truck.ToString());
            Console.WriteLine(bus.ToString());
        }
        static void Main(string[] args)
        {
            string[] carData = Console.ReadLine()
                               .Split(" ", StringSplitOptions.RemoveEmptyEntries)
                               .ToArray();
            string[] truckData = Console.ReadLine()
                                 .Split(" ", StringSplitOptions.RemoveEmptyEntries)
                                 .ToArray();
            string[] busData = Console.ReadLine()
                               .Split(" ", StringSplitOptions.RemoveEmptyEntries)
                               .ToArray();
            Vehicle car             = new Car(double.Parse(carData[1]), double.Parse(carData[2]), double.Parse(carData[3]));
            Vehicle truck           = new Truck(double.Parse(truckData[1]), double.Parse(truckData[2]), double.Parse(truckData[3]));
            Vehicle bus             = new Bus(double.Parse(busData[1]), double.Parse(busData[2]), double.Parse(busData[3]));
            int     numberOfCommand = int.Parse(Console.ReadLine());

            for (int i = 1; i <= numberOfCommand; i++)
            {
                string[] input = Console.ReadLine()
                                 .Split(" ", StringSplitOptions.RemoveEmptyEntries);
                var command  = input[0];
                var type     = input[1];
                var distance = double.Parse(input[2]);
                if (command == "Drive")
                {
                    if (type == "Car")
                    {
                        car.Driving(distance);
                    }
                    else if (type == "Truck")
                    {
                        truck.Driving(distance);
                    }
                    else if (type == "Bus")
                    {
                        bus.Driving(distance);
                    }
                }
                else if (command == "Refuel")
                {
                    if (type == "Car")
                    {
                        car.Refueling(distance);
                    }
                    else if (type == "Truck")
                    {
                        truck.Refueling(distance);
                    }
                    else if (type == "Bus")
                    {
                        bus.Refueling(distance);
                    }
                }
                else if (command == "DriveEmpty")
                {
                    if (type == "Bus")
                    {
                        ((Bus)bus).EmptyBus(distance);
                    }
                }
            }
            Console.WriteLine(car);
            Console.WriteLine(truck);
            Console.WriteLine(bus);
        }