#include using namespace std; int main() { int h, n; cin >> h >> n; int cnt = 0; for (int i = 0; i + 1 < n; ++i) { int g; cin >> g; cnt += g > h; } cout << cnt + 1; if (cnt == 0) cout << "st"; else if (cnt == 1) cout << "nd"; else if (cnt == 2) cout << "rd"; else cout << "th"; cout << endl; return 0; }