A diatomic gas \( (\gamma = 1.4) \) does \( 400 \, \text{J} \) of work when it is expanded isobarically. The heat given to the gas in the process is _______ \( \text{J} \).