import java.util.Scanner;

public class Main {
	public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int a = Integer.parseInt(std.next());
	    int b = Integer.parseInt(std.next());
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    String after = String.format("%.6f", f);
	    System.out.println(d+" "+r+" "+after);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int a = Integer.parseInt(std.next());
	    int b = Integer.parseInt(std.next());
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    String after = String.format("%.6f", f);
	    System.out.println(d+" "+r+" "+after);
	}
} Main public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int a = Integer.parseInt(std.next());
	    int b = Integer.parseInt(std.next());
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    String after = String.format("%.6f", f);
	    System.out.println(d+" "+r+" "+after);
	} main {
	    Scanner std = new Scanner(System.in);
	    int a = Integer.parseInt(std.next());
	    int b = Integer.parseInt(std.next());
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    String after = String.format("%.6f", f);
	    System.out.println(d+" "+r+" "+after);
	} Scanner std = new Scanner(System.in); std new Scanner(System.in) int a = Integer.parseInt(std.next()); a Integer.parseInt(std.next()) Integer.parseInt Integer std.next() std.next std int b = Integer.parseInt(std.next()); b Integer.parseInt(std.next()) Integer.parseInt Integer std.next() std.next std 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 String after = String.format("%.6f", f); after String.format("%.6f", f) String.format String "%.6f" f System.out.println(d+" "+r+" "+after) System.out.println System.out System System.out d+" "+r+" "+after " " r d+" "+r+" "+after d " " r " " after String[] args args public class Main {
	public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int a = Integer.parseInt(std.next());
	    int b = Integer.parseInt(std.next());
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    String after = String.format("%.6f", f);
	    System.out.println(d+" "+r+" "+after);
	}
} public class Main {
	public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int a = Integer.parseInt(std.next());
	    int b = Integer.parseInt(std.next());
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    String after = String.format("%.6f", f);
	    System.out.println(d+" "+r+" "+after);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
	    Scanner std = new Scanner(System.in);
	    int a = Integer.parseInt(std.next());
	    int b = Integer.parseInt(std.next());
	    int d = a/b;
	    int r = a%b;
	    double f = (double)a/(double)b;
	    String after = String.format("%.6f", f);
	    System.out.println(d+" "+r+" "+after);
	}
}