#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>n>>s; vector cnt(26,0); for(char c:s) cnt[c-'a']++; auto check= [&](Int x)->Int{ x-=cnt[25]; if(x<=0) return 1; if(cnt[24]>1; if(check(m)) l=m; else r=m; } cout<