import sys x = int(input()) y = int(input()) if y ==0: print("error") print( x//y, x%y) print(f"%.2f"%(x/y))