Sperm and egg in hermaphrodites

Hermaphrodites can produce which of the following?