#include <bits/stdc++.h>
using namespace std;
struct node{
int w=0,l=0;
bool ui=0;
};
int n;
struct op{
int flag,t,cnt;
}a[105];
bool cmp(op a,op b){
if(a.cnt!=b.cnt) return a.cnt>b.cnt;
if(a.t!=b.t) return a.t<b.t;
return a.flag<b.flag;
}
int main(){
}