trioecious

having male, female, and hermaphrodite flowers on different plants.