class ParkingSystem {
public:
int num[4];
ParkingSystem(int big, int medium, int small) {
num[1]=big,num[2]=medium,num[3]=small;
}
bool addCar(int carType) {
if(num[carType]>0)
{
num[carType]--;
return true;
}
return false;
}
};