using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoder_504 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] a = new int[n]; int rank = 1; for(int i = 0; i < n; i++) { a[i] = int.Parse(Console.ReadLine()); } for(int i = 0; i < n; i++) { if (a[0] < a[i]) { rank++; } Console.WriteLine(rank); } Console.ReadLine(); } } }