#include <bits/stdc++.h> using namespace std; struct stuff{ int num,age; string name; }; bool cmp(stuff A,stuff B) { if(A.age!=B.age) return A.age<B.age; else return A.num<B.num; } int main() { int n; while (cin >> n) { stuff stu[n]; for(int...