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

d = a//b

r = a % b

f = a / b

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

d,r,f = a//b,a%b,a/b

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

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

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

-d = a // b -r = a % b -f = a / b -print(("{:d} {:d} {:.5f}".format(d, r, f))) +d, r, f = a // b, a % b, a / b +print(("{} {} {:.5f}".format(d, r, f)))