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

print(a/b)

print(a%b)

print("%.5f" % (a/float(b)))
a,b = list(map(int,input().split()))

print(a/b,a%b,"%.5f"%(float(a)/float(b)))



 
a, b = list(map(int, input().split()))
print(a / b)
print(a % b)
print("%.5f" % (a / float(b)))

a, b = list(map(int, input().split()))
print(a / b, a % b, "%.5f" % (float(a) / float(b)))

-print(a / b) -print(a % b) -print("%.5f" % (a / float(b))) +print(a / b, a % b, "%.5f" % (float(a) / float(b)))