dpf int n,d,p [ if p [pn 10*n/d;dpf 10*n%d,d,p-1] ]