a, b = map(int, input().split()) print(a//b, end=".") a -= b*(a//b) def next_digit(n, m): # n < mのときしか使えない d = (n*10) // m print(d, end="") return 10*n - m*d for i in range(50): a = next_digit(a, b) print()