// ITP1_4

import java.util.Scanner;
import java.io.*;

class Main
{
	public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );

		double a = 0.0;
		double b = 0.0;
		int d = 0;
		int r = 0;
		double f = 0.0;

		a = sc.nextInt ();
		b = sc.nextInt ();
		
		d = ( int )a / ( int )b;
		r = ( int )a % ( int )b;
		f = a / b;

		System.out.println ( d + " " + r + " " + String.format ( "%7f", f ) );
	}
} import java.util.Scanner; Scanner java.util import java.io.*; io.* java class Main
{
	public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );

		double a = 0.0;
		double b = 0.0;
		int d = 0;
		int r = 0;
		double f = 0.0;

		a = sc.nextInt ();
		b = sc.nextInt ();
		
		d = ( int )a / ( int )b;
		r = ( int )a % ( int )b;
		f = a / b;

		System.out.println ( d + " " + r + " " + String.format ( "%7f", f ) );
	}
} Main public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );

		double a = 0.0;
		double b = 0.0;
		int d = 0;
		int r = 0;
		double f = 0.0;

		a = sc.nextInt ();
		b = sc.nextInt ();
		
		d = ( int )a / ( int )b;
		r = ( int )a % ( int )b;
		f = a / b;

		System.out.println ( d + " " + r + " " + String.format ( "%7f", f ) );
	} main {
		Scanner sc = new Scanner ( System.in );

		double a = 0.0;
		double b = 0.0;
		int d = 0;
		int r = 0;
		double f = 0.0;

		a = sc.nextInt ();
		b = sc.nextInt ();
		
		d = ( int )a / ( int )b;
		r = ( int )a % ( int )b;
		f = a / b;

		System.out.println ( d + " " + r + " " + String.format ( "%7f", f ) );
	} Scanner sc = new Scanner ( System.in ); sc new Scanner ( System.in ) double a = 0.0; a 0.0 double b = 0.0; b 0.0 int d = 0; d 0 int r = 0; r 0 double f = 0.0; f 0.0 a = sc.nextInt () a sc.nextInt () sc.nextInt sc b = sc.nextInt () b sc.nextInt () sc.nextInt sc d = ( int )a / ( int )b d ( int )a / ( int )b ( int )a ( int )b r = ( int )a % ( int )b r ( int )a % ( int )b ( int )a ( int )b f = a / b f a / b a b System.out.println ( d + " " + r + " " + String.format ( "%7f", f ) ) System.out.println System.out System System.out d + " " + r + " " + String.format ( "%7f", f ) " " r d + " " + r + " " + String.format ( "%7f", f ) d " " r " " String.format ( "%7f", f ) String.format String "%7f" f String[] args args
// ITP1_4

import java.util.Scanner;
import java.io.*;

class Main
{
	public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );

		double a = 0.0;
		double b = 0.0;
		int d = 0;
		int r = 0;
		double f = 0.0;

		a = sc.nextInt ();
		b = sc.nextInt ();
		
		d = ( int )a / ( int )b;
		r = ( int )a % ( int )b;
		f = a / b;

		System.out.println ( d + " " + r + " " + String.format ( "%7f", f ) );
	}
}