#include int main(void) { int i; int h, n; int h1; int count; scanf("%d%d", &h, &n); count = 0; for(i = 0;i < n;i++){ scanf("%d", &h1); if(h < h1){ count++; } } printf("%d", count); if(count % 10 == 1){ printf("st"); } else if(count % 10 == 2){ printf("nd"); } else if(count % 10 == 3){ printf("rd"); } else { printf("th"); } printf("\n"); return 0; }