using System; public class Multiply { public static void Main() { string[] hn = Console.ReadLine().Split(' '); int H = int.Parse(hn[0]); int N = int.Parse(hn[1]); int[] Hi = new int[N]; int num = 1; for (int i = 0; i < N; i++) { Hi[i] = int.Parse(Console.ReadLine()); } for (int i = 0; i < N; i++) { if (H < Hi[i]) { num++; } } if (num == 1) { Console.WriteLine(num + "st"); } else if (num == 2) { Console.WriteLine(num + "nd"); } else if (num == 3) { Console.WriteLine(num + "rd"); } else { Console.WriteLine(num + "th"); } } }