#include <iostream>
#include <iomanip>

using namespace std;
int main() {
	
	
	int a, b, d, r;
	double f;
	
	cin>> a >> b >> endl;
		
	d = a /b;
	r = a %b; 
	f = (double)a / b;
		cout<<fixed<<endl;
		cout<< d << " " << r << " " << f <<endl;
}
