import java.util.*;
import java.io.*;
public class Fall2017Q5 {
  
  
  public static void main(String[] args) throws Exception{ 
    
    Scanner input = new Scanner(new File("input5.txt"));
    PrintWriter output = new PrintWriter(new File("output5.txt"));
    
    int counter = 0;
    double minDist;
    boolean firstPair = true;
    while(input.hasNextInt()) {
      
      int first = input.nextInt();
      int second = input.nextInt();
      counter++;
 
      double quotient;
      if(first + second > 0)
        quotient = (double)first/second;
      else
        quotient = (double)second / first;
  
      if(firstPair) {
        minDist = quotient;
      }else{
        if(Math.abs(quotient) < Math.abs(minDist)) {
          minDist = quotient;
      output.println(first+" "+second+" "+quotient);
    }
    
    output.println("There were "+counter+" number of pairs.");
    output.println("The closest quotient to 0 was "+minDist);
    output.close();
  }
    
    
  
  /* ADD YOUR CODE HERE */
  
}
