#include #include using namespace std; int main() { int n,valley=0,i,hike=0,flag; cin>>n; char step[n+1]; scanf("%s",step); for(i=0;i