class ParkingSystem {
int a = 0;
int b = 0;
int c = 0;
public ParkingSystem(int big, int medium, int small) {
a = big;
b = medium;
c = small;
}
public boolean addCar(int carType) {
if(carType == 1 && a > 0){
a--;
return true;
}
if(carType == 2 && b >0){
b--;
return true;
}
if(carType == 3 && c >0){
c--;
return true;
}
return false;
}
}