import java.util.*; public class Main { static long off(String s, long total){ if (s.charAt(s.length()-1) == '1') return total/2; return total*3/10; } static class ob { String code, name, type; Float sum; int rank; public ob(int i, String name, float sum){ this.code = "HS" + String.format("%02d", i); this.name = name; this.sum = sum; if(sum >= 9) type = "Gioi"; else if(sum>=7) type = "Kha"; else if(sum>=5) type = "Trung Binh"; else type = "Yeu"; } public String toString() { return code + " " + name + " " + String.format("%.1f", sum) + " " + type + " " + String.format("%d", rank); } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList a = new ArrayList<>(); ArrayList b = new ArrayList<>(); for(int i=0;i y.sum.compareTo(x.sum)); a.forEach(e -> { for(int i=0;i