import sys



a, b = [ int( val ) for val in sys.stdin.readline().split( ' ' ) ]

print(( "{:d} {:d} {:7f}".format( a//b, a%b, a/b ) ))
import sys



a, b = [ int( val ) for val in sys.stdin.readline().split( ' ' ) ]

print(( "{:d} {:d} {:7f}".format( a//b, a%b,  float(a)/float(b) ) ))
import sys

a, b = [int(val) for val in sys.stdin.readline().split(" ")]
print(("{:d} {:d} {:7f}".format(a // b, a % b, a / b)))

import sys

a, b = [int(val) for val in sys.stdin.readline().split(" ")]
print(("{:d} {:d} {:7f}".format(a // b, a % b, float(a) / float(b))))

-print(("{:d} {:d} {:7f}".format(a // b, a % b, a / b))) +print(("{:d} {:d} {:7f}".format(a // b, a % b, float(a) / float(b))))