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