import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int d = a / b;
	    int r = a % b;
	    double f = (double)a / (double)b;
	    System.out.println(d + " " + r);
	    System.out.println(String.format("%.5f", f));
	}
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int d = a / b;
	    int r = a % b;
	    double f = (double)a / (double)b;
	    System.out.println(d + " " + r);
	    System.out.println(String.format("%.5f", f));
	}
    }
} Main public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int d = a / b;
	    int r = a % b;
	    double f = (double)a / (double)b;
	    System.out.println(d + " " + r);
	    System.out.println(String.format("%.5f", f));
	}
    } main {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int d = a / b;
	    int r = a % b;
	    double f = (double)a / (double)b;
	    System.out.println(d + " " + r);
	    System.out.println(String.format("%.5f", f));
	}
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int d = a / b;
	    int r = a % b;
	    double f = (double)a / (double)b;
	    System.out.println(d + " " + r);
	    System.out.println(String.format("%.5f", f));
	} scan.hasNext() scan.hasNext scan {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int d = a / b;
	    int r = a % b;
	    double f = (double)a / (double)b;
	    System.out.println(d + " " + r);
	    System.out.println(String.format("%.5f", f));
	} String input = scan.nextLine(); input scan.nextLine() scan.nextLine scan String[] inputs = input.split(" "); inputs input.split(" ") input.split input " " int a = Integer.parseInt(inputs[0]); a Integer.parseInt(inputs[0]) Integer.parseInt Integer inputs[0] inputs 0 int b = Integer.parseInt(inputs[1]); b Integer.parseInt(inputs[1]) Integer.parseInt Integer inputs[1] inputs 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.println(d + " " + r) System.out.println System.out System System.out d + " " + r d + " " + r d " " r System.out.println(String.format("%.5f", f)) System.out.println System.out System System.out String.format("%.5f", f) String.format String "%.5f" f String[] args args public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int d = a / b;
	    int r = a % b;
	    double f = (double)a / (double)b;
	    System.out.println(d + " " + r);
	    System.out.println(String.format("%.5f", f));
	}
    }
} public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int d = a / b;
	    int r = a % b;
	    double f = (double)a / (double)b;
	    System.out.println(d + " " + r);
	    System.out.println(String.format("%.5f", f));
	}
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	while(scan.hasNext()) {
	    String input = scan.nextLine();
	    String[] inputs = input.split(" ");
	    int a = Integer.parseInt(inputs[0]);
	    int b = Integer.parseInt(inputs[1]);
	    int d = a / b;
	    int r = a % b;
	    double f = (double)a / (double)b;
	    System.out.println(d + " " + r);
	    System.out.println(String.format("%.5f", f));
	}
    }
}