import java.util.*;
  
class Main{
  public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    long a = stdId.nextLong(); 
    long b = stdId.nextLong(); 
    long d,r;
    double f;
    d = a/b;
    r = a%b;
    f = (double)a/b;
    System.out.printf("%d %d %f\n",d,r,f);
  }
} import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    long a = stdId.nextLong(); 
    long b = stdId.nextLong(); 
    long d,r;
    double f;
    d = a/b;
    r = a%b;
    f = (double)a/b;
    System.out.printf("%d %d %f\n",d,r,f);
  }
} Main public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    long a = stdId.nextLong(); 
    long b = stdId.nextLong(); 
    long d,r;
    double f;
    d = a/b;
    r = a%b;
    f = (double)a/b;
    System.out.printf("%d %d %f\n",d,r,f);
  } main {
    Scanner stdId = new Scanner(System.in);
    long a = stdId.nextLong(); 
    long b = stdId.nextLong(); 
    long d,r;
    double f;
    d = a/b;
    r = a%b;
    f = (double)a/b;
    System.out.printf("%d %d %f\n",d,r,f);
  } Scanner stdId = new Scanner(System.in); stdId new Scanner(System.in) long a = stdId.nextLong(); a stdId.nextLong() stdId.nextLong stdId long b = stdId.nextLong(); b stdId.nextLong() stdId.nextLong stdId long d d r; r double f; f 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 %f\n",d,r,f) System.out.printf System.out System System.out "%d %d %f\n" d r f String[] args args
import java.util.*;
  
class Main{
  public static void main(String[] args){
    Scanner stdId = new Scanner(System.in);
    long a = stdId.nextLong(); 
    long b = stdId.nextLong(); 
    long d,r;
    double f;
    d = a/b;
    r = a%b;
    f = (double)a/b;
    System.out.printf("%d %d %f\n",d,r,f);
  }
}