import java.util.Arrays;
import java.util.Scanner;


public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		
		System.out.printf("%d %d %.7f\n", (a / b), (a % b), (a / (double) b));
		
	}
	
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		
		System.out.printf("%d %d %.7f\n", (a / b), (a % b), (a / (double) b));
		
	}
	
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		
		System.out.printf("%d %d %.7f\n", (a / b), (a % b), (a / (double) b));
		
	} main {
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		
		System.out.printf("%d %d %.7f\n", (a / b), (a % b), (a / (double) b));
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final long a = sc.nextLong(); a sc.nextLong() sc.nextLong sc final long b = sc.nextLong(); b sc.nextLong() sc.nextLong sc System.out.printf("%d %d %.7f\n", (a / b), (a % b), (a / (double) b)) System.out.printf System.out System System.out "%d %d %.7f\n" (a / b) a b (a % b) a b (a / (double) b) a (double) b String args[] args public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		
		System.out.printf("%d %d %.7f\n", (a / b), (a % b), (a / (double) b));
		
	}
	
} public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		
		System.out.printf("%d %d %.7f\n", (a / b), (a % b), (a / (double) b));
		
	}
	
} Main
import java.util.Arrays;
import java.util.Scanner;


public class Main {
	
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		
		final long a = sc.nextLong();
		final long b = sc.nextLong();
		
		System.out.printf("%d %d %.7f\n", (a / b), (a % b), (a / (double) b));
		
	}
	
}