import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
public class PopDen01{
public static void main(String[] args){
String filename = "countryData.txt";
File fileObject = new File(filename);
Scanner fileScanner = null;
try{
fileScanner = new Scanner(fileObject);
}catch(FileNotFoundException e){
System.err.println(e.toString());
System.exit(1);
}
if( fileScanner.hasNextLine() ){
String header = fileScanner.nextLine();
}else{
System.err.println("Expecting a header, but didn't find one");
}
while( fileScanner.hasNext() == true ){
String countryId = fileScanner.next();
double population = fileScanner.nextDouble();
double area = fileScanner.nextDouble();
System.out.println( countryId + "\t"+ Math.round((population / area)*10.0)/10.0 );
}
}
}