#include using namespace std; int main() { int H, N; cin >> H >> N; int res = 1; for (int i = 0, h; i < N - 1; i++) { cin >> h; if (h > H) { res++; } } cout << res << (res % 10 == 1 ? "st" : res % 10 == 2 ? "nd" : res % 10 == 3 ? "rd" : "th") << endl; return 0; }