just dead end both three ways to make it simple. feed and switch in one box and bring two three wires to the othe box one for the lite and one for the fan.