#include int main() { int H, n; scanf("%d %d", &H, &n); int i; int h[102]; for (i = 0; i < n - 1; i++) scanf("%d", &h[i]); int ans = 1; for (i = 0; i < n - 1; i++) if (h[i] > H) ans++; printf("%d", ans); if (ans == 1)printf("st\n"); if (ans == 2)printf("nd\n"); if (ans == 3)printf("rd\n"); if (ans > 3)printf("th\n"); return 0; }