a, b = map(int, input().split()) ans = "" d = 1 for i in range(10): if a > 10 * b: b *= 10 d += 1 for i in range(d): c = 0 for j in range(10): if a >= b: a -= b c += 1 a *= 10 print(c) ans += str(c) ans += "." for i in range(50): c = 0 for j in range(10): if a >= b: a -= b c += 1 a *= 10 print(c) ans += str(c) print(ans)