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();
		StringBuilder sb = new StringBuilder();
		
		String[] num = line.split(" ");
		int a = Integer.parseInt(num[0]);
		int b = Integer.parseInt(num[1]);
		
		int d = a/b;
		int r = a%b;
		String f = String.format("%.5f",((double)a / (double)b));
		
		sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
		System.out.print(sb);
	}
} 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();
		StringBuilder sb = new StringBuilder();
		
		String[] num = line.split(" ");
		int a = Integer.parseInt(num[0]);
		int b = Integer.parseInt(num[1]);
		
		int d = a/b;
		int r = a%b;
		String f = String.format("%.5f",((double)a / (double)b));
		
		sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
		System.out.print(sb);
	}
} Main public static void main(String[] args)throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		StringBuilder sb = new StringBuilder();
		
		String[] num = line.split(" ");
		int a = Integer.parseInt(num[0]);
		int b = Integer.parseInt(num[1]);
		
		int d = a/b;
		int r = a%b;
		String f = String.format("%.5f",((double)a / (double)b));
		
		sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
		System.out.print(sb);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		StringBuilder sb = new StringBuilder();
		
		String[] num = line.split(" ");
		int a = Integer.parseInt(num[0]);
		int b = Integer.parseInt(num[1]);
		
		int d = a/b;
		int r = a%b;
		String f = String.format("%.5f",((double)a / (double)b));
		
		sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
		System.out.print(sb);
	} 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 StringBuilder sb = new StringBuilder(); sb new StringBuilder() String[] num = line.split(" "); num line.split(" ") line.split line " " int a = Integer.parseInt(num[0]); a Integer.parseInt(num[0]) Integer.parseInt Integer num[0] num 0 int b = Integer.parseInt(num[1]); b Integer.parseInt(num[1]) Integer.parseInt Integer num[1] num 1 int d = a/b; d a/b a b int r = a%b; r a%b a b String f = String.format("%.5f",((double)a / (double)b)); f String.format("%.5f",((double)a / (double)b)) String.format String "%.5f" ((double)a / (double)b) (double)a (double)b sb.append(d).append(" ").append(r).append(" ").append(f).append("\n") sb.append(d).append(" ").append(r).append(" ").append(f).append sb.append(d).append(" ").append(r).append(" ").append(f) sb.append(d).append(" ").append(r).append(" ").append sb.append(d).append(" ").append(r).append(" ") sb.append(d).append(" ").append(r).append sb.append(d).append(" ").append(r) sb.append(d).append(" ").append sb.append(d).append(" ") sb.append(d).append sb.append(d) sb.append sb d " " r " " f "\n" System.out.print(sb) System.out.print System.out System System.out sb 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();
		StringBuilder sb = new StringBuilder();
		
		String[] num = line.split(" ");
		int a = Integer.parseInt(num[0]);
		int b = Integer.parseInt(num[1]);
		
		int d = a/b;
		int r = a%b;
		String f = String.format("%.5f",((double)a / (double)b));
		
		sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
		System.out.print(sb);
	}
} public class Main{
	
	public static void main(String[] args)throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		StringBuilder sb = new StringBuilder();
		
		String[] num = line.split(" ");
		int a = Integer.parseInt(num[0]);
		int b = Integer.parseInt(num[1]);
		
		int d = a/b;
		int r = a%b;
		String f = String.format("%.5f",((double)a / (double)b));
		
		sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
		System.out.print(sb);
	}
} 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();
		StringBuilder sb = new StringBuilder();
		
		String[] num = line.split(" ");
		int a = Integer.parseInt(num[0]);
		int b = Integer.parseInt(num[1]);
		
		int d = a/b;
		int r = a%b;
		String f = String.format("%.5f",((double)a / (double)b));
		
		sb.append(d).append(" ").append(r).append(" ").append(f).append("\n");
		System.out.print(sb);
	}
}