Computer Configuration
The available system units are as follows: a1 supports only the VGA interface, a2 supports only the DVI interface, and a3 supports both VGA and DVI interfaces. Similarly, for monitors: b1 supports only VGA, b2 supports only DVI, and b3 supports both interfaces.
Determine the maximum number of computer sets that can be assembled, ensuring each set has a compatible graphics interface between the system unit and the monitor.
**Input data**: The first line contains three numbers: a1, a2, and a3. The second line contains three numbers: b1, b2, and b3. All numbers are non-negative integers.
The constraints are: 0 <= a1, a2, a3, b1, b2, b3 <= 100 and a1 + a2 + a3 = b1 + b2 + b3.
**Output data**: Provide the maximum number of compatible computer sets that can be assembled.