x=int(input())
y=int(input())
print(x//y,x%y)
print('%0.2f'% (x/y))