using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string str = Console.ReadLine(); int N = int.Parse(str); int[] A = new int[N]; for(var i=0;i A[j]){ cnt += 1; } } } Console.WriteLine(cnt); for(var i=1;i