x = eval(input())
y = eval(input())

print(x // y, x % y)
print(f"{float(x) / y:.2f}")