solve p001