In a parliamentary system, the functions of the head of state and the head of government are vested in