#include #include #include #include #include using namespace std; int main() { int n, height = 0, flag = 0, valleyCounter = 0; cin >> n; char step; for(int i=0; i