import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int a = scan.nextInt(); int rank = 1; System.out.println(1); for(int i = 0; i < N - 1; i++) { int t = scan.nextInt(); if(a >= t) { System.out.println(rank); }else { rank ++; System.out.println(rank); } } scan.close(); } }