import java.util.*; public class Main { static class ob { String code, name, cl; float a, b, c; public ob(String code, String name, String cl, float a, float b, float c){ this.code = code; this.name = name; this.cl = cl; this.a =a; this.b=b; this.c=c; } public String toString() { return code + ' ' + name + ' ' + cl + String.format(" %.1f %.1f %.1f", a, b, c); } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList a = new ArrayList<>(); for(int i=0;i { return x.code.compareTo(y.code); }); for(int i=1; i<=n; i++){ System.out.printf("%d %s\n", i, a.get(i-1)); } } }