#include #include using namespace std; string Substr(string S,int s,int e) { string S1; for (int i=s-1;i<=e-1;i++){ S1+=S[i]; } return S1; } int main(int argc, char* argv[]) { int N; string S; cin>>N; cin>>S; int i,j; for (i=1;i