b[]={-6,3,9,5,3,-7},r[99],s[99],l,i,j,p;
main(){
for(;i<(l=sizeof b/sizeof*b);i++)
for(j=0;j<i;j++)
r[b[i]>=b[j]?i:j]++;
while(i--)s[r[i]]=b[i];
for(i=l;--i;)
for(j=l;--j;)
r[j]-=s[i-1]==s[i]&r[j]>=i;
while(p
<l
)printf("%d ",r
[p
++]+1); }
YltdPXstNiwzLDksNSwzLC03fSxyWzk5XSxzWzk5XSxsLGksaixwOwptYWluKCl7Cglmb3IoO2k8KGw9c2l6ZW9mIGIvc2l6ZW9mKmIpO2krKykKCQlmb3Ioaj0wO2o8aTtqKyspCgkJCXJbYltpXT49YltqXT9pOmpdKys7Cgl3aGlsZShpLS0pc1tyW2ldXT1iW2ldOwoJZm9yKGk9bDstLWk7KQoJCWZvcihqPWw7LS1qOykKCQkJcltqXS09c1tpLTFdPT1zW2ldJnJbal0+PWk7Cgl3aGlsZShwPGwpcHJpbnRmKCIlZCAiLHJbcCsrXSsxKTsKfQo=