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



public class PopDen{
    public static void main( String[] args ){
        String filename = "countryData.tab";
        File filePathObj = new File(filename);

        // Try to open data file
        Scanner s = null;
        try{
            s = new Scanner(filePathObj);
        }catch(FileNotFoundException e){
            System.err.println("Sorry, unable to open " + filename + ": " + e.getMessage());
            System.exit(1);
        }

        // Ignore first line
        String header = s.nextLine();
        System.err.println("Ignoring the header line: " + header);

        // For each subsequent line
        while(s.hasNext()){
            // Read in country name, population and area
            String country = s.next(); // country
            int population = s.nextInt(); // population
            double area = s.nextDouble(); // land area

            // Display population density (population / area), rounded to 1 decimal place
            System.out.println( country + "  " + Math.round(population / area * 10.0)/10.0);
        }

        s.close();
    }
}