Common iliac vessels are composed of: