#include using namespace std; typedef long long ll; int main() { int n; string s; cin>>n>>s; int a[n]; stack st; for (int i=0;i