Algolagnie (German) comes from Ancient Greek ἄλγος, from Ancient Greek ἀλέγω — I heed, trouble myself.