using System; using System.Collections.Generic; using System.IO; class Solution { static void Main(String[] args) { int n = int.Parse(Console.ReadLine()); string steps = Console.ReadLine(); int level = 0; bool onValley=false; int cantValley=0; for(int i =0;i