import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    String line = br.readLine();
	    //文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除きます。
	    line = line.trim();
	    //半角スペースを区切り文字として扱う
	    String[] readLineArray = line.split("[\\s+]");
	    //変数に配列を代入
	    int a = Integer.parseInt(readLineArray[0]);
	    int b = Integer.parseInt(readLineArray[1]);
	 
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    System.out.printf("%d %d %.5f\n",d,r,f);
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    String line = br.readLine();
	    //文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除きます。
	    line = line.trim();
	    //半角スペースを区切り文字として扱う
	    String[] readLineArray = line.split("[\\s+]");
	    //変数に配列を代入
	    int a = Integer.parseInt(readLineArray[0]);
	    int b = Integer.parseInt(readLineArray[1]);
	 
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    System.out.printf("%d %d %.5f\n",d,r,f);
	}

} Main public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    String line = br.readLine();
	    //文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除きます。
	    line = line.trim();
	    //半角スペースを区切り文字として扱う
	    String[] readLineArray = line.split("[\\s+]");
	    //変数に配列を代入
	    int a = Integer.parseInt(readLineArray[0]);
	    int b = Integer.parseInt(readLineArray[1]);
	 
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    System.out.printf("%d %d %.5f\n",d,r,f);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    String line = br.readLine();
	    //文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除きます。
	    line = line.trim();
	    //半角スペースを区切り文字として扱う
	    String[] readLineArray = line.split("[\\s+]");
	    //変数に配列を代入
	    int a = Integer.parseInt(readLineArray[0]);
	    int b = Integer.parseInt(readLineArray[1]);
	 
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    System.out.printf("%d %d %.5f\n",d,r,f);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br line = line.trim() line line.trim() line.trim line String[] readLineArray = line.split("[\\s+]"); readLineArray line.split("[\\s+]") line.split line "[\\s+]" int a = Integer.parseInt(readLineArray[0]); a Integer.parseInt(readLineArray[0]) Integer.parseInt Integer readLineArray[0] readLineArray 0 int b = Integer.parseInt(readLineArray[1]); b Integer.parseInt(readLineArray[1]) Integer.parseInt Integer readLineArray[1] readLineArray 1 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.printf("%d %d %.5f\n",d,r,f) System.out.printf System.out System System.out "%d %d %.5f\n" d r f String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    String line = br.readLine();
	    //文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除きます。
	    line = line.trim();
	    //半角スペースを区切り文字として扱う
	    String[] readLineArray = line.split("[\\s+]");
	    //変数に配列を代入
	    int a = Integer.parseInt(readLineArray[0]);
	    int b = Integer.parseInt(readLineArray[1]);
	 
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    System.out.printf("%d %d %.5f\n",d,r,f);
	}

} public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    String line = br.readLine();
	    //文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除きます。
	    line = line.trim();
	    //半角スペースを区切り文字として扱う
	    String[] readLineArray = line.split("[\\s+]");
	    //変数に配列を代入
	    int a = Integer.parseInt(readLineArray[0]);
	    int b = Integer.parseInt(readLineArray[1]);
	 
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    System.out.printf("%d %d %.5f\n",d,r,f);
	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    String line = br.readLine();
	    //文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除きます。
	    line = line.trim();
	    //半角スペースを区切り文字として扱う
	    String[] readLineArray = line.split("[\\s+]");
	    //変数に配列を代入
	    int a = Integer.parseInt(readLineArray[0]);
	    int b = Integer.parseInt(readLineArray[1]);
	 
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    System.out.printf("%d %d %.5f\n",d,r,f);
	}

}