#include<iostream>
using namespace std;
class LandVehicle{
    public:
    int noOfWheels;

    LandVehicle(int noOfWheels){
        this->noOfWheels=noOfWheels;
        cout<<"Constructor of land vehicle\n";
    }
    
};

class WaterVehicle{
    public:
    int draftDepth;

    WaterVehicle(int draftDepth){
        this->draftDepth=draftDepth;
        cout<<"Constructor of water vehicle\n";
    }
    
};

class AmphVehicle: public LandVehicle, public WaterVehicle{
  public:
  bool canOpOnSand;
  
  AmphVehicle(int noOfWheels, int draftDepth, bool canOpOnSand)
    :LandVehicle(noOfWheels), WaterVehicle(draftDepth){
      this->canOpOnSand=canOpOnSand;
      cout<<"Constructor of amphibious vehicle\n";
  }
};


int main(){
    AmphVehicle av(4, 10, true);
    
    return 0;
}