Fixed distance problem