solve p017 (tough...)