import sys

x = int(input())
y = int(input())
print(x//y,x%y,sep=' ')
print("%.2f"%(x/y))
#note the second