M=10**50 A,B=map(int, input().split()) A*=M x=A//B s=x//M s=str(s) l=len(s) if s!="0" else 0 S=str(x) t="" for i in range(50): if l+i