using System; using System.Collections.Generic; using System.IO; class Solution { static void Main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */ int n = Convert.ToInt32(Console.ReadLine()); string hike = Console.ReadLine(); char [] arr = hike.ToCharArray(); int valley = 0; int level = 0; //sea level bool atSeaLevel = true; for(int i=0;i