import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int base = sc.nextInt(); StringBuilder sb = new StringBuilder(); sb.append("1\n"); int rank = 1; for (int i = 1; i < n; i++) { int x = sc.nextInt(); if (base < x) { rank++; } sb.append(rank).append("\n"); } System.out.print(sb); } }