a, b = map(int, input().split()) q, r = divmod(a, b) a -= q * b ans = [str(q), "."] for _ in range(50): a *= 10 q, r = divmod(a, b) ans.append(str(q)) a -= q * b print("".join(ans))