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