#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int N; cin>>N; string steps; cin.ignore(); getline(cin,steps); int height = 0,ValleyFlag =0, ValleyCount =0; for(int i =0;i