def main():

	numbers = input().split()
	a, b = map(int, numbers)

	d = a // b
	r = a % b
	f = a / b


	if d == 1:
		print(d)
	else:	
		print('{0} {1} {2}'.format(d, r, f))
	


if __name__=="__main__":
	main()