<image>John made a construction with wooden cubes of the same size, with the three views shown beside, using as many cubes as possible. Ana, John's sister, wants to remove all the cubes she can, without modifying these three views. At most, how many cubes can she remove?
front:
<image1>
right side:
<image2>
above: