An ideal monatomic gas follows the ABCDA path in the adjoining P-V diagram. The work done by the gas will be