#include #define rep(i,n)for(long long i=0;i<(n);i++) using namespace std; typedef unsigned long long ull; typedef long long ll; const ll INF=1e18; const int MOD=1e9+7; const double pi=acos(-1); int main(){ int h,n; cin >> h >> n; vectorl(n); l[0]=h; rep(i,n-1)cin >> l[i+1]; sort(l.begin(),l.end(),greater()); rep(i,n){ if(l[i]==h){ cout << i+1; string t=to_string(i+1); int num=t.size(); if(t[num-1]=='1')cout<<"st"<