x = int(input()) y = int(input()) m = x // y n = x % y z = x/y print('{} {}\n{:.2f}'.format(m,n,z))#保留两位小数{:.2f}