using System; namespace yukicoder { class Program { static void Main(string[] args) { int a,b,e; int num = 0; int sum = 0; a = int.Parse(Console.ReadLine()); b = int.Parse(Console.ReadLine()); string[] c = Console.ReadLine().Split(' '); int[] d = new int[c.Length]; for(int i = 0; i < c.Length; i++) { d[i] = int.Parse(c[i]); } for (int x = 0; x <= d.Length;x++) { for (int y = x; y < d.Length; y++) { if (d[y] a) { break; } num++; } Console.WriteLine(num.ToString()); } } }