(a, b) = [int(x) for x in input().split()]



x = a // b

y = a % b

z = a / b



print(('{0} {1} {2:.6f}'.format(x,y,z)))
a, b = [int(i) for i in input().split()]



d = a // b

r = a % b

f = a / b



print(("{0} {1} {2:.5f}".format(d, r, f)))
(a, b) = [int(x) for x in input().split()]
x = a // b
y = a % b
z = a / b
print(("{0} {1} {2:.6f}".format(x, y, z)))

a, b = [int(i) for i in input().split()]
d = a // b
r = a % b
f = a / b
print(("{0} {1} {2:.5f}".format(d, r, f)))

-(a, b) = [int(x) for x in input().split()] -x = a // b -y = a % b -z = a / b -print(("{0} {1} {2:.6f}".format(x, y, z))) +a, b = [int(i) for i in input().split()] +d = a // b +r = a % b +f = a / b +print(("{0} {1} {2:.5f}".format(d, r, f)))