#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; char A[N]; for(int i=0;i>A[i]; int u=0; int d=0; int valley=0; for(int i=0;i