ll@x,r=0; while(x>=10){ ++r; ll y=1; while(x){ y*=x%10; x/=10; } x=y; } wt(r);