#include "bits/stdc++.h" using namespace std; signed main() { int h, n; cin >> h >> n; int num =1; for (int i = 0; i < n - 1; i++) { int hl; cin >> hl; if (h < hl) { num++; } } string res = to_string(num); if (num == 1) { res += "st"; } else if (num == 2) { res += "nd"; } else if (num == 3) { res += "rd"; } else { res += "th"; } }