# include # include # include # include # include # include # include # include # include # include # include # include # include using namespace std; using LL = long long; constexpr int MOD = 1000000000 + 7; //足し算してオーバーフローで死なないように確認しようね constexpr int INF = 1000000000; const double PI = acos(-1); int main() { int h, n; cin >> h >> n; int a; int ans = 1; for (int i = 0; i < n-1; i++) { cin >> a; if (a > h)ans++; } cout << ans << (ans % 10 == 1 ? string("st") : (ans % 10 == 2 ? string("nd") : (ans % 10 == 3 ? string("rd") : string("th")))) << endl; }