Input (grade 4): Most commonly, heat pumps draw heat from the air or from the ground.
Output (grade 4): Some buildings are heated with heat pumps, also. In the winter, the heat pump moves heat from the outside to the inside.