#include #include using namespace std; struct man { int a,b,c; }; man x[1001]; int n,t,i,m,a; bool cmp(man x,man y) { if(x.c>y.c) return false; return true; } void print(int a) { int j; for(j=0;j