#include using namespace std; int main(){ int H, N; cin >> H >> N; vector H2(N); for (int i = 0; i < N; i++){ cin >> H2[i]; } int cnt = 0; for (int i = 0; i < N; i++){ if (H2[i] > H){ cnt++; } } cout << cnt; if (cnt % 10 == 1){ cout << "st" << endl; } else if (cnt % 10 == 2){ cout << "nd" << endl; } else if (cnt % 10 == 3){ cout << "rd" << endl; } else { cout << "th" << endl; } }