heater hose connection

Which way are the heater hoses supposed to connect to the engine? Smaller one on water pump or on intake?