import sys s=int(input()) s2=int(input()) print(s//s2,s%s2) k=float(s/s2) print("{:.2f}".format(s/s2))