# encoding:utf-8



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

a, b = input



d = a / b

r = a % b

f = float(a) / b



print((d), end=' ')

print((r), end=' ')

print(('%03.9f' % f))
# encoding:utf-8



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

a, b = input



d = a / b

r = a % b

f = float(a) / b



print((d), end=' ')

print((r), end=' ')

print(('%03.8f' % f))
# encoding:utf-8
input = list(map(int, input().split()))
a, b = input
d = a / b
r = a % b
f = float(a) / b
print((d), end=" ")
print((r), end=" ")
print(("%03.9f" % f))

# encoding:utf-8
input = list(map(int, input().split()))
a, b = input
d = a / b
r = a % b
f = float(a) / b
print((d), end=" ")
print((r), end=" ")
print(("%03.8f" % f))

-print(("%03.9f" % f)) +print(("%03.8f" % f))