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 */ var seaLevel = true; var n = int.Parse(Console.ReadLine()); var input = Console.ReadLine(); int level = 0; int valleys = 0; for(var i=0;i