#include #include #include #include #include using namespace std; int main() { int n; cin>>n; string s; cin>>s; int stepp[n+2]={0}; int step=0,valley=0,count=0; for(int i=0;i0) stepp[i+1]=1; if(step<0) stepp[i+1]=-1; if(step==0) stepp[i+1]==0; } for(int i=0;i