import java.util.Scanner ;
public class Main {
private Scanner scanner;
private Main( Scanner scanner) {
this .scanner = scanner;
}
public static void main
( String [ ] args
) { Main main
= new Main
( new Scanner
( System .
in ) ) ; main.solve ( ) ;
}
private void solve( ) {
int n = scanner.nextInt ( ) ;
int [ ] a = new int [ n] ;
for ( int i = 0 ; i < n; i++ ) a[ i] = scanner.nextInt ( ) ;
for ( int i = 0 ; i < n; i++ ) {
int s = 1 ;
for ( int j = 0 ; j < n; j++ ) if ( a[ j] > a[ i] ) s++;
if ( i
< n
- 1 ) System .
out .
print ( " " ) ; else
}
}
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwoKcHVibGljIGNsYXNzIE1haW4gewoKICAgIHByaXZhdGUgU2Nhbm5lciBzY2FubmVyOwoKICAgIHByaXZhdGUgTWFpbihTY2FubmVyIHNjYW5uZXIpIHsKICAgICAgICB0aGlzLnNjYW5uZXIgPSBzY2FubmVyOwogICAgfQoKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBNYWluIG1haW4gPSBuZXcgTWFpbihuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pKTsKICAgICAgICBtYWluLnNvbHZlKCk7CiAgICB9CgogICAgcHJpdmF0ZSB2b2lkIHNvbHZlKCkgewogICAgICAgIGludCBuID0gc2Nhbm5lci5uZXh0SW50KCk7CiAgICAgICAgaW50W10gYSA9IG5ldyBpbnRbbl07CiAgICAgICAgZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspIGFbaV0gPSBzY2FubmVyLm5leHRJbnQoKTsKICAgICAgICBmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykgewogICAgICAgICAgICBpbnQgcyA9IDE7CiAgICAgICAgICAgIGZvciAoaW50IGogPSAwOyBqIDwgbjsgaisrKSBpZiAoYVtqXSA+IGFbaV0pIHMrKzsKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludChzKTsKICAgICAgICAgICAgaWYgKGkgPCBuIC0gMSkgU3lzdGVtLm91dC5wcmludCgiICIpOwogICAgICAgICAgICBlbHNlCiAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oKTsKICAgICAgICB9CiAgICB9Cn0=