#include<iostream>
using namespace std;
class Vehicle{
    protected:
    string model;
    int year;
    double engineSize;
    
    public:
    Vehicle(string m, int y, double e){
        model=m; year=y; engineSize=e;
    }
    string getModel(){
        return model;
    }
    int getYear(){
        return year;
    }
    double getEngineSize(){
        return engineSize;
    }
    void display(){
        cout << "Model: " << model << endl;
        cout << "Year: " << year << endl;
        cout << "Engine Size: " << engineSize << " L" << endl;
    }
    
};

class Car: public Vehicle{
    protected:
    int trunk;
    
    public:
    Car(string m, int y, double e, int t):Vehicle(m,y,e){
        trunk=t;
    } 
    
    int getTrunk(){
        return trunk;
    }
    
    void display(){
        Vehicle::display();
        cout << "Trunk Capacity: " << trunk << endl;
    }
};

class Bus: public Vehicle{
    protected:
    int sitting, standing;
    
    public:
    Bus(int st, int sd, string m, int y, double e): Vehicle(m,y,e){
        sitting=st; standing=sd;
    }
    
    int getSitting(){
        return sitting;
    }
    
    int getStanding(){
        return standing;
    }
    
    void display(){
        Vehicle::display();
        cout<<"No. of sitting passengers: "<<sitting<<endl;
        cout<<"No. of standing passengers: "<<standing<<endl;
    }
};
int main(){
    
    return 0;
}