d from a p