using System; class Program { private static readonly Scanner sc = new Scanner(); static void Main(string[] args) { int n = sc.Int; int score = sc.Int; int rank = 1; Console.WriteLine(1); for (int i = 0; i < n - 1; i++) { if (score < sc.Int) rank++; Console.WriteLine(rank); } } } class Scanner { private string[] _str = new string[0]; private int _i; public string Str { get { if (_i >= _str.Length) { _str = Console.ReadLine().Split(' '); _i = 0; } return _str[_i++]; } } public int Int { get { return int.Parse(Str); } } public long Long { get { return long.Parse(Str); } } public double Double { get { return double.Parse(Str); } } }