When a system gains heat, the value of q is