#include using namespace std; int main(){ int n; string s; cin>>n>>s; vector p(n); string ans=s; for (int i=0;i>p[i]; ans[i]=s[--p[i]]; } cout<