#include using namespace std; int main(){ int n; string s; int d[200000]; cin >> n >> s; for(int i=0; i'){ k++; if(k >= n){ cout << "error" << endl; return 0; } }else{ k--; if(k < 0){ cout << "error" << endl; return 0; } } } for(int i=0; i 0)cout << " "; cout << d[i]; } cout << endl; }