import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		String [] string = bufferedReader.readLine().split(" ");
		
		Integer a = Integer.parseInt(string[0]);
		Integer b = Integer.parseInt(string[1]);
		
		Integer dInteger = 0;
		Integer rInteger = 0;
		Double d;
		
		dInteger = a / b;
		rInteger = a % b;
		d = (double)a / (double)b;
		
		final String FORMAT = "%d %d %f";
		
		String s = String.format(FORMAT, dInteger,rInteger,d);
		System.out.println(s);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		String [] string = bufferedReader.readLine().split(" ");
		
		Integer a = Integer.parseInt(string[0]);
		Integer b = Integer.parseInt(string[1]);
		
		Integer dInteger = 0;
		Integer rInteger = 0;
		Double d;
		
		dInteger = a / b;
		rInteger = a % b;
		d = (double)a / (double)b;
		
		final String FORMAT = "%d %d %f";
		
		String s = String.format(FORMAT, dInteger,rInteger,d);
		System.out.println(s);
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		String [] string = bufferedReader.readLine().split(" ");
		
		Integer a = Integer.parseInt(string[0]);
		Integer b = Integer.parseInt(string[1]);
		
		Integer dInteger = 0;
		Integer rInteger = 0;
		Double d;
		
		dInteger = a / b;
		rInteger = a % b;
		d = (double)a / (double)b;
		
		final String FORMAT = "%d %d %f";
		
		String s = String.format(FORMAT, dInteger,rInteger,d);
		System.out.println(s);
	} main {
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		String [] string = bufferedReader.readLine().split(" ");
		
		Integer a = Integer.parseInt(string[0]);
		Integer b = Integer.parseInt(string[1]);
		
		Integer dInteger = 0;
		Integer rInteger = 0;
		Double d;
		
		dInteger = a / b;
		rInteger = a % b;
		d = (double)a / (double)b;
		
		final String FORMAT = "%d %d %f";
		
		String s = String.format(FORMAT, dInteger,rInteger,d);
		System.out.println(s);
	} BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); bufferedReader new BufferedReader(new InputStreamReader(System.in)) String [] string = bufferedReader.readLine().split(" "); string bufferedReader.readLine().split(" ") bufferedReader.readLine().split bufferedReader.readLine() bufferedReader.readLine bufferedReader " " Integer a = Integer.parseInt(string[0]); a Integer.parseInt(string[0]) Integer.parseInt Integer string[0] string 0 Integer b = Integer.parseInt(string[1]); b Integer.parseInt(string[1]) Integer.parseInt Integer string[1] string 1 Integer dInteger = 0; dInteger 0 Integer rInteger = 0; rInteger 0 Double d; d dInteger = a / b dInteger a / b a b rInteger = a % b rInteger a % b a b d = (double)a / (double)b d (double)a / (double)b (double)a (double)b final String FORMAT = "%d %d %f"; FORMAT "%d %d %f" String s = String.format(FORMAT, dInteger,rInteger,d); s String.format(FORMAT, dInteger,rInteger,d) String.format String FORMAT dInteger rInteger d System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		String [] string = bufferedReader.readLine().split(" ");
		
		Integer a = Integer.parseInt(string[0]);
		Integer b = Integer.parseInt(string[1]);
		
		Integer dInteger = 0;
		Integer rInteger = 0;
		Double d;
		
		dInteger = a / b;
		rInteger = a % b;
		d = (double)a / (double)b;
		
		final String FORMAT = "%d %d %f";
		
		String s = String.format(FORMAT, dInteger,rInteger,d);
		System.out.println(s);
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		String [] string = bufferedReader.readLine().split(" ");
		
		Integer a = Integer.parseInt(string[0]);
		Integer b = Integer.parseInt(string[1]);
		
		Integer dInteger = 0;
		Integer rInteger = 0;
		Double d;
		
		dInteger = a / b;
		rInteger = a % b;
		d = (double)a / (double)b;
		
		final String FORMAT = "%d %d %f";
		
		String s = String.format(FORMAT, dInteger,rInteger,d);
		System.out.println(s);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		String [] string = bufferedReader.readLine().split(" ");
		
		Integer a = Integer.parseInt(string[0]);
		Integer b = Integer.parseInt(string[1]);
		
		Integer dInteger = 0;
		Integer rInteger = 0;
		Double d;
		
		dInteger = a / b;
		rInteger = a % b;
		d = (double)a / (double)b;
		
		final String FORMAT = "%d %d %f";
		
		String s = String.format(FORMAT, dInteger,rInteger,d);
		System.out.println(s);
	}
}