using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace pj5 { 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 < a.Length;i++ ) { a[i] = int.Parse(Console.ReadLine()); } for (int i = 0; i < a.Length; i++) { if(a[0] < a[i]) { rank++; } Console.WriteLine(rank); } } } }