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