A,B=map(int,input().split()) #筆算をするやり方で解く ans=str(A//B)+"." A%=B for i in range(50): A*=10 ans+=str(A//B) A%=B print(ans)