In cases as described above where cooling and heating requirements occur simultaneously in the same building, the heat recovery system makes it possible to perform cooling operation and heating operation simultaneously in the same system. It also reduces energy consumption by recovering the heat generated during cooling operation and using it for heating.