Volume
A parallelepiped is aligned with the coordinate axes, with one vertex at the origin (0, 0, 0) and the opposite vertex at (A, B, C). This parallelepiped is divided into K smaller parallelepipeds, each also aligned with the coordinate axes. These smaller parallelepipeds do not overlap internally, and together they completely fill the original parallelepiped.
The positions of K-1 of these smaller parallelepipeds are known. Your task is to calculate the volume of the one remaining parallelepiped.
Input
The first line contains three integers, representing the coordinates of the opposite vertex of the original parallelepiped: (A, B, C). The second line contains the integer K (1 ≤ K ≤ 10^5), which is the total number of smaller parallelepipeds. The following K-1 lines each contain six integers: x_1, y_1, z_1, x_2, y_2, z_2. Here, (x_1, y_1, z_1) and (x_2, y_2, z_2) are the coordinates of two diagonally opposite vertices of a smaller parallelepiped. All coordinates are integers and do not exceed 10^9 in absolute value.
Output
Output a single integer, which is the volume of the missing parallelepiped.