#include #define rep(i, n) for(int i = 0; i < (int)(n); i++) using namespace std; int main(){ int H,N; cin >> H >> N; int h; int ans = 1; string st[4] ={"st","nd","rd","th"}; rep(i,N-1){ cin >> h; if (H < h) ans++; } cout << ans << st[min({(ans-1)%10,3})] <