Both sadism and masochism existing in the same person