import java.util.Scanner;
import java.io.FileNotFoundException;
import java.io.File;

public class PopDen{
    public static void main( String[] args ){
        Scanner fileScanner = null;
        File fileObj = new File("countryData.tab");

        try{
            fileScanner = new Scanner( fileObj );

        }catch(FileNotFoundException e){
            System.err.println(e.getMessage());
            System.exit(1);
        }

        // For each line
        while( fileScanner.hasNext() ){
            //System.err.println("DEBUGGING: new line");
            String countryName = fileScanner.next();
            // System.err.println("DEBUGGING: countryName: " + countryName);

            // Ignore first line
            if( countryName.startsWith("#") ){
                // System.err.println("DEBUGGING: Ignoring the header line");
                String header = fileScanner.nextLine();
                // System.err.println("DEBUGGING: \t" + header);
                continue;
            }

            // Read in country name, population and area
            int population = fileScanner.nextInt();
            double area = fileScanner.nextDouble();
            double populationDensity = population / area;
            // Display population density (population / area), rounded to 1 decimal place
            // System.err.println("populationDensity*10: " + (populationDensity*10));
            // System.err.println("Math.round(populationDensity*10): " + (Math.round(populationDensity*10)));
            // System.err.println("Math.round(populationDensity*10)/10: " + (Math.round(populationDensity*10)/10));

            System.out.println( countryName + "\t" +
                                Math.round(populationDensity*10.0)/10.0
                );

        }


    }

}