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

f = a / b

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

f = a / b

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

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

-print((int(a / b), a % b, "{0:.5f}".format(f))) +print((int(a / b), a % b, "{0:.5f}".format(a / b)))