import java.io.*;

public class Main {
	
		public static void main(String[] args) throws IOException{
			
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String[] str = br.readLine().split(" ");
			
			int a= Integer.parseInt(str[0]);
			int b = Integer.parseInt(str[1]);
			
			int div = a / b;
			int amari = a % b;
			//String syosu = String.format("%.5f",((double)a/(double)b));
			double syosu = (double)a/(double)b;
			
			//System.out.println(div + " " + amari + " " + syosu);
			System.out.printf("%d %d %5f", div, amari, syosu);
		}

} import java.io.*; io.* java public class Main {
	
		public static void main(String[] args) throws IOException{
			
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String[] str = br.readLine().split(" ");
			
			int a= Integer.parseInt(str[0]);
			int b = Integer.parseInt(str[1]);
			
			int div = a / b;
			int amari = a % b;
			//String syosu = String.format("%.5f",((double)a/(double)b));
			double syosu = (double)a/(double)b;
			
			//System.out.println(div + " " + amari + " " + syosu);
			System.out.printf("%d %d %5f", div, amari, syosu);
		}

} Main public static void main(String[] args) throws IOException{
			
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String[] str = br.readLine().split(" ");
			
			int a= Integer.parseInt(str[0]);
			int b = Integer.parseInt(str[1]);
			
			int div = a / b;
			int amari = a % b;
			//String syosu = String.format("%.5f",((double)a/(double)b));
			double syosu = (double)a/(double)b;
			
			//System.out.println(div + " " + amari + " " + syosu);
			System.out.printf("%d %d %5f", div, amari, syosu);
		} main {
			
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String[] str = br.readLine().split(" ");
			
			int a= Integer.parseInt(str[0]);
			int b = Integer.parseInt(str[1]);
			
			int div = a / b;
			int amari = a % b;
			//String syosu = String.format("%.5f",((double)a/(double)b));
			double syosu = (double)a/(double)b;
			
			//System.out.println(div + " " + amari + " " + syosu);
			System.out.printf("%d %d %5f", div, amari, syosu);
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a= Integer.parseInt(str[0]); a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int b = Integer.parseInt(str[1]); b Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int div = a / b; div a / b a b int amari = a % b; amari a % b a b double syosu = (double)a/(double)b; syosu (double)a/(double)b (double)a (double)b System.out.printf("%d %d %5f", div, amari, syosu) System.out.printf System.out System System.out "%d %d %5f" div amari syosu String[] args args public class Main {
	
		public static void main(String[] args) throws IOException{
			
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String[] str = br.readLine().split(" ");
			
			int a= Integer.parseInt(str[0]);
			int b = Integer.parseInt(str[1]);
			
			int div = a / b;
			int amari = a % b;
			//String syosu = String.format("%.5f",((double)a/(double)b));
			double syosu = (double)a/(double)b;
			
			//System.out.println(div + " " + amari + " " + syosu);
			System.out.printf("%d %d %5f", div, amari, syosu);
		}

} public class Main {
	
		public static void main(String[] args) throws IOException{
			
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String[] str = br.readLine().split(" ");
			
			int a= Integer.parseInt(str[0]);
			int b = Integer.parseInt(str[1]);
			
			int div = a / b;
			int amari = a % b;
			//String syosu = String.format("%.5f",((double)a/(double)b));
			double syosu = (double)a/(double)b;
			
			//System.out.println(div + " " + amari + " " + syosu);
			System.out.printf("%d %d %5f", div, amari, syosu);
		}

} Main
import java.io.*;

public class Main {
	
		public static void main(String[] args) throws IOException{
			
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String[] str = br.readLine().split(" ");
			
			int a= Integer.parseInt(str[0]);
			int b = Integer.parseInt(str[1]);
			
			int div = a / b;
			int amari = a % b;
			//String syosu = String.format("%.5f",((double)a/(double)b));
			double syosu = (double)a/(double)b;
			
			//System.out.println(div + " " + amari + " " + syosu);
			System.out.printf("%d %d %5f", div, amari, syosu);
		}

}