#include #include #include #include #include #include #include #include #include #include #include #include #include #include #define INF 2000000000 #define LINF 9000000000000000000 #define mod 1000000007 #define rep(i,n) for(int i=0;i=0;i--) #define REP(i,a,b) for(int i=(a);i vi; typedef pair pi; int dx[4]={1,0,-1,0}; int dy[4]={0,1,0,-1}; bool debug=false; /*---------------------------------------------------*/ int main(){ int n,h,H; vi rank; cin>>H>>n; rank.pb(H); rep(i,n-1){cin>>h;rank.pb(h);} rsort(rank); rep(i,n) if(rank[i]==H){ if((i+1)%10==1)cout<