#include using namespace std; int main() { int n,count=0,valley=0; cin >> n; bool flag=true; string str; cin >> str; for(int i=0;i