#K5946. Player Rankings

    ID: 30869 Type: Default 1000ms 256MiB

Player Rankings

Player Rankings

You are given the scores of N players. Your task is to compute the ranking for each player based on their score. The player with the highest score receives a rank of 1. In the case of equal scores, the players receive the same rank. The ranking for a player is defined as one plus the number of players with a strictly higher score. For example, if the scores are [10, 20, 20, 10, 30] then the rankings are [4, 2, 2, 4, 1].

Note: The input is provided via standard input (stdin) and the output should be printed to standard output (stdout).

inputFormat

The first line contains an integer N representing the number of players. The second line contains N space-separated integers representing the scores of each player.

outputFormat

Output a single line with N space-separated integers where the i-th integer is the rank of the i-th player according to their score.

## sample
5
10 20 20 10 30
4 2 2 4 1