An amount Q of heat is added to a monatomic ideal gas in a process in which the gas perform a work Q/2 on its surrounding. Find the molar heat capacity for the process.