import java.util.Scanner;
import java.math.*;

class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		
		int a = Integer.parseInt(scan.next());
		int b = Integer.parseInt(scan.next());
		
		int d = a / b;
		int r = a % b;
		double f = (double)a / b;
		
		System.out.println(d + " " +r+ " " + BigDecimal.valueOf(f).toPlainString());
	}
} import java.util.Scanner; Scanner java.util import java.math.*; math.* java class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		
		int a = Integer.parseInt(scan.next());
		int b = Integer.parseInt(scan.next());
		
		int d = a / b;
		int r = a % b;
		double f = (double)a / b;
		
		System.out.println(d + " " +r+ " " + BigDecimal.valueOf(f).toPlainString());
	}
} Main public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		
		int a = Integer.parseInt(scan.next());
		int b = Integer.parseInt(scan.next());
		
		int d = a / b;
		int r = a % b;
		double f = (double)a / b;
		
		System.out.println(d + " " +r+ " " + BigDecimal.valueOf(f).toPlainString());
	} main {
		Scanner scan = new Scanner(System.in);
		
		int a = Integer.parseInt(scan.next());
		int b = Integer.parseInt(scan.next());
		
		int d = a / b;
		int r = a % b;
		double f = (double)a / b;
		
		System.out.println(d + " " +r+ " " + BigDecimal.valueOf(f).toPlainString());
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = Integer.parseInt(scan.next()); a Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int b = Integer.parseInt(scan.next()); b Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int d = a / b; d a / b a b int r = a % b; r a % b a b double f = (double)a / b; f (double)a / b (double)a b System.out.println(d + " " +r+ " " + BigDecimal.valueOf(f).toPlainString()) System.out.println System.out System System.out d + " " +r+ " " + BigDecimal.valueOf(f).toPlainString() " " r d + " " +r+ " " + BigDecimal.valueOf(f).toPlainString() d " " r " " BigDecimal.valueOf(f).toPlainString() BigDecimal.valueOf(f).toPlainString BigDecimal.valueOf(f) BigDecimal.valueOf BigDecimal f String args[] args
import java.util.Scanner;
import java.math.*;

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