
import java.util.Scanner;

class Main {
	public static void main(String args[]){
		
		//スキャナーで整数を2つ読み取る
	    Scanner sc = new Scanner(System.in);
	    String s1 = sc.next();
	    int a = Integer.parseInt(s1);
	    String s2 = sc.next();
	    int b = Integer.parseInt(s2);
	    double p = Math.pow(10, 9);
	    
	    //a、bが指定の条件(1から１０の９乗)内にあるか確認
	    if(1 <= a && a <= p){
	    	if(1 <= b && b <= p){
	    		//計算
	    		int d = a / b;
	    		int r = a % b;
	    		double f = (double)a / (double)b;
	    		
	    		//計算結果を表示
	    		System.out.println(d + " " + r + " " + String.format("%1$3f",f));
	    	}
	    }
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String args[]){
		
		//スキャナーで整数を2つ読み取る
	    Scanner sc = new Scanner(System.in);
	    String s1 = sc.next();
	    int a = Integer.parseInt(s1);
	    String s2 = sc.next();
	    int b = Integer.parseInt(s2);
	    double p = Math.pow(10, 9);
	    
	    //a、bが指定の条件(1から１０の９乗)内にあるか確認
	    if(1 <= a && a <= p){
	    	if(1 <= b && b <= p){
	    		//計算
	    		int d = a / b;
	    		int r = a % b;
	    		double f = (double)a / (double)b;
	    		
	    		//計算結果を表示
	    		System.out.println(d + " " + r + " " + String.format("%1$3f",f));
	    	}
	    }
	}
} Main public static void main(String args[]){
		
		//スキャナーで整数を2つ読み取る
	    Scanner sc = new Scanner(System.in);
	    String s1 = sc.next();
	    int a = Integer.parseInt(s1);
	    String s2 = sc.next();
	    int b = Integer.parseInt(s2);
	    double p = Math.pow(10, 9);
	    
	    //a、bが指定の条件(1から１０の９乗)内にあるか確認
	    if(1 <= a && a <= p){
	    	if(1 <= b && b <= p){
	    		//計算
	    		int d = a / b;
	    		int r = a % b;
	    		double f = (double)a / (double)b;
	    		
	    		//計算結果を表示
	    		System.out.println(d + " " + r + " " + String.format("%1$3f",f));
	    	}
	    }
	} main {
		
		//スキャナーで整数を2つ読み取る
	    Scanner sc = new Scanner(System.in);
	    String s1 = sc.next();
	    int a = Integer.parseInt(s1);
	    String s2 = sc.next();
	    int b = Integer.parseInt(s2);
	    double p = Math.pow(10, 9);
	    
	    //a、bが指定の条件(1から１０の９乗)内にあるか確認
	    if(1 <= a && a <= p){
	    	if(1 <= b && b <= p){
	    		//計算
	    		int d = a / b;
	    		int r = a % b;
	    		double f = (double)a / (double)b;
	    		
	    		//計算結果を表示
	    		System.out.println(d + " " + r + " " + String.format("%1$3f",f));
	    	}
	    }
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s1 = sc.next(); s1 sc.next() sc.next sc int a = Integer.parseInt(s1); a Integer.parseInt(s1) Integer.parseInt Integer s1 String s2 = sc.next(); s2 sc.next() sc.next sc int b = Integer.parseInt(s2); b Integer.parseInt(s2) Integer.parseInt Integer s2 double p = Math.pow(10, 9); p Math.pow(10, 9) Math.pow Math 10 9 if(1 <= a && a <= p){
	    	if(1 <= b && b <= p){
	    		//計算
	    		int d = a / b;
	    		int r = a % b;
	    		double f = (double)a / (double)b;
	    		
	    		//計算結果を表示
	    		System.out.println(d + " " + r + " " + String.format("%1$3f",f));
	    	}
	    } 1 <= a && a <= p 1 <= a 1 a a <= p a p {
	    	if(1 <= b && b <= p){
	    		//計算
	    		int d = a / b;
	    		int r = a % b;
	    		double f = (double)a / (double)b;
	    		
	    		//計算結果を表示
	    		System.out.println(d + " " + r + " " + String.format("%1$3f",f));
	    	}
	    } if(1 <= b && b <= p){
	    		//計算
	    		int d = a / b;
	    		int r = a % b;
	    		double f = (double)a / (double)b;
	    		
	    		//計算結果を表示
	    		System.out.println(d + " " + r + " " + String.format("%1$3f",f));
	    	} 1 <= b && b <= p 1 <= b 1 b b <= p b p {
	    		//計算
	    		int d = a / b;
	    		int r = a % b;
	    		double f = (double)a / (double)b;
	    		
	    		//計算結果を表示
	    		System.out.println(d + " " + r + " " + String.format("%1$3f",f));
	    	} int d = a / b; d a / b a b int r = a % b; r a % b a b double f = (double)a / (double)b; f (double)a / (double)b (double)a (double)b System.out.println(d + " " + r + " " + String.format("%1$3f",f)) System.out.println System.out System System.out d + " " + r + " " + String.format("%1$3f",f) " " r d + " " + r + " " + String.format("%1$3f",f) d " " r " " String.format("%1$3f",f) String.format String "%1$3f" f String args[] args

import java.util.Scanner;

class Main {
	public static void main(String args[]){
		
		//スキャナーで整数を2つ読み取る
	    Scanner sc = new Scanner(System.in);
	    String s1 = sc.next();
	    int a = Integer.parseInt(s1);
	    String s2 = sc.next();
	    int b = Integer.parseInt(s2);
	    double p = Math.pow(10, 9);
	    
	    //a、bが指定の条件(1から１０の９乗)内にあるか確認
	    if(1 <= a && a <= p){
	    	if(1 <= b && b <= p){
	    		//計算
	    		int d = a / b;
	    		int r = a % b;
	    		double f = (double)a / (double)b;
	    		
	    		//計算結果を表示
	    		System.out.println(d + " " + r + " " + String.format("%1$3f",f));
	    	}
	    }
	}
}