import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import static java.lang.System.in; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(in)); int N = Integer.parseInt(reader.readLine()); int rankK = 1; int scoreK = Integer.parseInt(reader.readLine());; System.out.println(rankK); for (int i = 1; i < N; i++) { int score = Integer.parseInt(reader.readLine()); if(scoreK < score) { rankK+=1; } System.out.println(rankK); } } }