x = eval(input())
y = eval(input())
a, b = divmod(x, y)
c = x/y
print(a, b)
print(f'{c:.2f}')