#include using namespace std; int main() { int target, n, h; cin >> target >> n; int order = 1; for (int i = 1; i < n; i++) { cin >> h; if (h > target) { order++; } } string suffix; switch (order % 10) { case 1: suffix = "st"; break; case 2: suffix = "nd"; break; case 3: suffix = "rd"; break; default: suffix = "th"; break; } cout << order << suffix << endl; return 0; }