A polymorphism maintained by opposite patterns of parasitism and predation