#include #define MOD 1000000007LL using namespace std; typedef long long ll; typedef pair P; int n; string str; int ans[200005]; int main(void){ scanf("%d",&n); cin >> str; stack sta; for(int i=0;i