0 getting sexual pleasure from sadism (= hurting people) and from masochism (= being hurt):
He was a sadomasochistic bully.
She has sadomasochistic tendencies.
We can complete it step by step however long the road is and it can't be completed however short the road is if you don't even mark your footprint.