import sys x = int(input()) y = int(input()) print(x//y, x%y, sep=" ") result = x/y print(f"{result:.2f}")