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