import java.util.*;
class Main{
	public static void main(String[] args){
		
		int a,b,d,r;//int型変数定義
		double f;//不動小数点用変数定義
		
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		
		if(1 <= a && a <= Math.pow(10,9)){//条件 1<=a,b<=10の９乗
			d = a / b;//a÷bあまりなし
			r = a % b;//a÷bあまり
			f = (double)a/b;//a÷b小数表示
			System.out.printf(d + " " + r + " " + "%f",(double)f);
		}
		
	
	}
	
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
		
		int a,b,d,r;//int型変数定義
		double f;//不動小数点用変数定義
		
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		
		if(1 <= a && a <= Math.pow(10,9)){//条件 1<=a,b<=10の９乗
			d = a / b;//a÷bあまりなし
			r = a % b;//a÷bあまり
			f = (double)a/b;//a÷b小数表示
			System.out.printf(d + " " + r + " " + "%f",(double)f);
		}
		
	
	}
	
} Main public static void main(String[] args){
		
		int a,b,d,r;//int型変数定義
		double f;//不動小数点用変数定義
		
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		
		if(1 <= a && a <= Math.pow(10,9)){//条件 1<=a,b<=10の９乗
			d = a / b;//a÷bあまりなし
			r = a % b;//a÷bあまり
			f = (double)a/b;//a÷b小数表示
			System.out.printf(d + " " + r + " " + "%f",(double)f);
		}
		
	
	} main {
		
		int a,b,d,r;//int型変数定義
		double f;//不動小数点用変数定義
		
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		
		if(1 <= a && a <= Math.pow(10,9)){//条件 1<=a,b<=10の９乗
			d = a / b;//a÷bあまりなし
			r = a % b;//a÷bあまり
			f = (double)a/b;//a÷b小数表示
			System.out.printf(d + " " + r + " " + "%f",(double)f);
		}
		
	
	} int a a b b d d r; r double f; f Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc if(1 <= a && a <= Math.pow(10,9)){//条件 1<=a,b<=10の９乗
			d = a / b;//a÷bあまりなし
			r = a % b;//a÷bあまり
			f = (double)a/b;//a÷b小数表示
			System.out.printf(d + " " + r + " " + "%f",(double)f);
		} 1 <= a && a <= Math.pow(10,9) 1 <= a 1 a a <= Math.pow(10,9) a Math.pow(10,9) Math.pow Math 10 9 {//条件 1<=a,b<=10の９乗
			d = a / b;//a÷bあまりなし
			r = a % b;//a÷bあまり
			f = (double)a/b;//a÷b小数表示
			System.out.printf(d + " " + r + " " + "%f",(double)f);
		} d = a / b d a / b a b r = a % b r a % b a b f = (double)a/b f (double)a/b (double)a b System.out.printf(d + " " + r + " " + "%f",(double)f) System.out.printf System.out System System.out d + " " + r + " " + "%f" " " r d + " " + r + " " + "%f" d " " r " " "%f" (double)f String[] args args
import java.util.*;
class Main{
	public static void main(String[] args){
		
		int a,b,d,r;//int型変数定義
		double f;//不動小数点用変数定義
		
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		
		if(1 <= a && a <= Math.pow(10,9)){//条件 1<=a,b<=10の９乗
			d = a / b;//a÷bあまりなし
			r = a % b;//a÷bあまり
			f = (double)a/b;//a÷b小数表示
			System.out.printf(d + " " + r + " " + "%f",(double)f);
		}
		
	
	}
	
}