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



print(("{} {} {:5f}".format(int(a/b), a%b, a/b)))
a, b = list(map(int, input().split()))



d, r = divmod(a, b)

f = a / b



print(("{} {} {:.5f}".format(d,r,f)))

a, b = list(map(int, input().split(" ")))
print(("{} {} {:5f}".format(int(a / b), a % b, a / b)))

a, b = list(map(int, input().split()))
d, r = divmod(a, b)
f = a / b
print(("{} {} {:.5f}".format(d, r, f)))

-a, b = list(map(int, input().split(" "))) -print(("{} {} {:5f}".format(int(a / b), a % b, a / b))) +a, b = list(map(int, input().split())) +d, r = divmod(a, b) +f = a / b +print(("{} {} {:.5f}".format(d, r, f)))