import java.util.Scanner;
 
class Main{
  public static void main(String[] arg){
    int a, b, d, r;
    double f;
    Scanner in = new Scanner(System.in);
    a = in.nextInt();
    b = in.nextInt();
    d = a/b;
    r = a%b;
    f = (double)a/b;
    System.out.printf("%d %d %.6f",d,r,f);
    }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] arg){
    int a, b, d, r;
    double f;
    Scanner in = new Scanner(System.in);
    a = in.nextInt();
    b = in.nextInt();
    d = a/b;
    r = a%b;
    f = (double)a/b;
    System.out.printf("%d %d %.6f",d,r,f);
    }
} Main public static void main(String[] arg){
    int a, b, d, r;
    double f;
    Scanner in = new Scanner(System.in);
    a = in.nextInt();
    b = in.nextInt();
    d = a/b;
    r = a%b;
    f = (double)a/b;
    System.out.printf("%d %d %.6f",d,r,f);
    } main {
    int a, b, d, r;
    double f;
    Scanner in = new Scanner(System.in);
    a = in.nextInt();
    b = in.nextInt();
    d = a/b;
    r = a%b;
    f = (double)a/b;
    System.out.printf("%d %d %.6f",d,r,f);
    } int a a b b d d r; r double f; f Scanner in = new Scanner(System.in); in new Scanner(System.in) a = in.nextInt() a in.nextInt() in.nextInt in b = in.nextInt() b in.nextInt() in.nextInt in d = a/b d a/b a b r = a%b r a%b a b f = (double)a/b f (double)a/b (double)a b System.out.printf("%d %d %.6f",d,r,f) System.out.printf System.out System System.out "%d %d %.6f" d r f String[] arg arg
import java.util.Scanner;
 
class Main{
  public static void main(String[] arg){
    int a, b, d, r;
    double f;
    Scanner in = new Scanner(System.in);
    a = in.nextInt();
    b = in.nextInt();
    d = a/b;
    r = a%b;
    f = (double)a/b;
    System.out.printf("%d %d %.6f",d,r,f);
    }
}