A,B=map(int,input().split()) Q,r=divmod(A,B) X=[] for _ in range(60): q,r=divmod(10*r,B) X.append(q) print(Q,".",*X[:50],sep="")