import java.util.Scanner;

public class Main {

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

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c=(int) a/b;
        int d=(int)a%b;
        double r=(double)a/b;
        System.out.printf("%d %d %f\n",c,d,r);
        
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c=(int) a/b;
        int d=(int)a%b;
        double r=(double)a/b;
        System.out.printf("%d %d %f\n",c,d,r);
        
    } main {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c=(int) a/b;
        int d=(int)a%b;
        double r=(double)a/b;
        System.out.printf("%d %d %f\n",c,d,r);
        
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int c=(int) a/b; c (int) a/b (int) a b int d=(int)a%b; d (int)a%b (int)a b double r=(double)a/b; r (double)a/b (double)a b System.out.printf("%d %d %f\n",c,d,r) System.out.printf System.out System System.out "%d %d %f\n" c d r String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c=(int) a/b;
        int d=(int)a%b;
        double r=(double)a/b;
        System.out.printf("%d %d %f\n",c,d,r);
        
    }
} public class Main {

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

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c=(int) a/b;
        int d=(int)a%b;
        double r=(double)a/b;
        System.out.printf("%d %d %f\n",c,d,r);
        
    }
}