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