struct student{
string name;
int score;
int age;
bool operator< (const student &S){
if(score!=S.score) return score<S.score;
else{
if(name!=S.name) return name<S.name;
else return age<S.age;
}
}
}q[N];