#include #include #include #include #include #include #include using namespace std; struct ga{ int id; int dig; }a[10004]; int main(){ int hush[10004]; int n,maxn,num,i,j,minn,f; while(~scanf("%d",&n)&&n>=1){ memset(hush,0,sizeof(hush)); maxn=-1;num=0; for(i=0;ia[i].id){ if(hush[j]