import java.util.ArrayList;
import java.util.Scanner;

/**
 * Created 2017/06/01.
 */
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Integer.parseInt(sc.next());
      ary.add(input);
      if (ary.size() == 2) break;
    }
    
    double a = ary.get(0);
    double b = ary.get(1);
    
    int ans1 = (int)(a / b);
    int ans2 = (int)(a % b);
    double ans3 = a / b;

    System.out.printf("%d",ans1);
    System.out.print(" ");
    System.out.printf("%d",ans2);
    System.out.print(" ");
    System.out.printf("%f",ans3);
  }
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Integer.parseInt(sc.next());
      ary.add(input);
      if (ary.size() == 2) break;
    }
    
    double a = ary.get(0);
    double b = ary.get(1);
    
    int ans1 = (int)(a / b);
    int ans2 = (int)(a % b);
    double ans3 = a / b;

    System.out.printf("%d",ans1);
    System.out.print(" ");
    System.out.printf("%d",ans2);
    System.out.print(" ");
    System.out.printf("%f",ans3);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Integer.parseInt(sc.next());
      ary.add(input);
      if (ary.size() == 2) break;
    }
    
    double a = ary.get(0);
    double b = ary.get(1);
    
    int ans1 = (int)(a / b);
    int ans2 = (int)(a % b);
    double ans3 = a / b;

    System.out.printf("%d",ans1);
    System.out.print(" ");
    System.out.printf("%d",ans2);
    System.out.print(" ");
    System.out.printf("%f",ans3);
  } main {
    Scanner sc = new Scanner(System.in);

    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Integer.parseInt(sc.next());
      ary.add(input);
      if (ary.size() == 2) break;
    }
    
    double a = ary.get(0);
    double b = ary.get(1);
    
    int ans1 = (int)(a / b);
    int ans2 = (int)(a % b);
    double ans3 = a / b;

    System.out.printf("%d",ans1);
    System.out.print(" ");
    System.out.printf("%d",ans2);
    System.out.print(" ");
    System.out.printf("%f",ans3);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Double> ary = new ArrayList<>(); ary new ArrayList<>() while (true) {
      double input = Integer.parseInt(sc.next());
      ary.add(input);
      if (ary.size() == 2) break;
    } true {
      double input = Integer.parseInt(sc.next());
      ary.add(input);
      if (ary.size() == 2) break;
    } double input = Integer.parseInt(sc.next()); input Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ary.add(input) ary.add ary input if (ary.size() == 2) break; ary.size() == 2 ary.size() ary.size ary 2 break; double a = ary.get(0); a ary.get(0) ary.get ary 0 double b = ary.get(1); b ary.get(1) ary.get ary 1 int ans1 = (int)(a / b); ans1 (int)(a / b) a b int ans2 = (int)(a % b); ans2 (int)(a % b) a b double ans3 = a / b; ans3 a / b a b System.out.printf("%d",ans1) System.out.printf System.out System System.out "%d" ans1 System.out.print(" ") System.out.print System.out System System.out " " System.out.printf("%d",ans2) System.out.printf System.out System System.out "%d" ans2 System.out.print(" ") System.out.print System.out System System.out " " System.out.printf("%f",ans3) System.out.printf System.out System System.out "%f" ans3 String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Integer.parseInt(sc.next());
      ary.add(input);
      if (ary.size() == 2) break;
    }
    
    double a = ary.get(0);
    double b = ary.get(1);
    
    int ans1 = (int)(a / b);
    int ans2 = (int)(a % b);
    double ans3 = a / b;

    System.out.printf("%d",ans1);
    System.out.print(" ");
    System.out.printf("%d",ans2);
    System.out.print(" ");
    System.out.printf("%f",ans3);
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Integer.parseInt(sc.next());
      ary.add(input);
      if (ary.size() == 2) break;
    }
    
    double a = ary.get(0);
    double b = ary.get(1);
    
    int ans1 = (int)(a / b);
    int ans2 = (int)(a % b);
    double ans3 = a / b;

    System.out.printf("%d",ans1);
    System.out.print(" ");
    System.out.printf("%d",ans2);
    System.out.print(" ");
    System.out.printf("%f",ans3);
  }
} Main
import java.util.ArrayList;
import java.util.Scanner;

/**
 * Created 2017/06/01.
 */
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    ArrayList<Double> ary = new ArrayList<>();

    while (true) {
      double input = Integer.parseInt(sc.next());
      ary.add(input);
      if (ary.size() == 2) break;
    }
    
    double a = ary.get(0);
    double b = ary.get(1);
    
    int ans1 = (int)(a / b);
    int ans2 = (int)(a % b);
    double ans3 = a / b;

    System.out.printf("%d",ans1);
    System.out.print(" ");
    System.out.printf("%d",ans2);
    System.out.print(" ");
    System.out.printf("%f",ans3);
  }
}