Գրեք սա: Self-normalised distance with don't cares