#include int main(){ int nama, n; std::cin >> nama >> n; int ans = 1; int h; for(int i = 0; i < n - 1; i++){ std::cin >> h; if(h > nama)ans++; } std::string s; if(ans % 10 == 1)s = "st"; else if(ans % 10 == 2)s = "nd"; else if(ans % 10 == 3)s = "rd"; else s = "th"; std::cout << ans << s << std::endl; }