a,b = list(map(int, input().split()))

d = int(a / b)

r = int(a % b)

f = a / b

print((str(d) + " " + str(r) + " " + str("{0:.10f}".format(f))))
a,b = list(map(int, input().split()))

c = int(a / b)

d = a % b

e = a / b



print((str(c) + " " + str(d) + " "+"{0:.8f}".format(e)))
a, b = list(map(int, input().split()))
d = int(a / b)
r = int(a % b)
f = a / b
print((str(d) + " " + str(r) + " " + str("{0:.10f}".format(f))))

a, b = list(map(int, input().split()))
c = int(a / b)
d = a % b
e = a / b
print((str(c) + " " + str(d) + " " + "{0:.8f}".format(e)))

-d = int(a / b) -r = int(a % b) -f = a / b -print((str(d) + " " + str(r) + " " + str("{0:.10f}".format(f)))) +c = int(a / b) +d = a % b +e = a / b +print((str(c) + " " + str(d) + " " + "{0:.8f}".format(e)))