import java.util.*;

public class Main {
    static class Student {
        int id;
        int academic_score;
        int activity_score;
        
        public Student(int id, int academic, int activity) {
            this.id = id;
            this.academic_score = academic;
            this.activity_score = activity;
        }
    }

    static boolean isExcellent(Student student) {
        int and = student.academic_score+student.activity_score;
        double s = student.academic_score*0.7+student.activity_score*0.3;
        if(and>140&&s>=80){
            return true;
        }
        return false;
    }





































































































































































































    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        
        for (int i = 0; i < n; i++) {
            int id = scanner.nextInt();
            int academic = scanner.nextInt();
            int activity = scanner.nextInt();
            Student student = new Student(id, academic, activity);
            
            if (isExcellent(student)) {
                System.out.println("Excellent");
            } else {
                System.out.println("Not excellent");
            }
        }
        scanner.close();
    }
}