def fun(x,y): if y!=0: a=x//y b=x%y c=x/y print('{} {}\n{:.2f}'.format(a,b,c)) x=int(input()) y=int(input()) fun(x,y)