using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoder_564 { class Program { static void Main(string[] args) { string[] s = Console.ReadLine().Split(' '); int h = int.Parse(s[0]); int n = int.Parse(s[1]); int[] H = new int[n - 1]; for(int i = 0; i < n - 1; i++) { H[i] = int.Parse(Console.ReadLine()); } int count = 0; for(int i = 0; i < n - 1; i++) { if (h < H[i]) { count++; } } count++; if(count%10==1) { Console.WriteLine(count + "st"); }else if (count % 10 == 2) { Console.WriteLine(count + "nd"); }else if (count % 10 == 3) { Console.WriteLine(count + "rd"); } else { Console.WriteLine(count + "th"); } Console.ReadLine(); } } }