#import int N,i,j,a;char s[999],t[999];main(){scanf("%d%s",&N,s);strcpy(t,s);for(std::reverse(t,t+N);i