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



d=a//b

r=a%b

f=round(a/b,6)



print((d,r,f))
a,b=list(map(int,input().split()))



d=a//b

r=a%b

f=a/b

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





a, b = list(map(int, input().split()))
d = a // b
r = a % b
f = round(a / b, 6)
print((d, r, f))

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

-f = round(a / b, 6) -print((d, r, f)) +f = a / b +print((d, r, "{0:.9f}".format(f)))