ll@n,a[n];rd(a(n));wt(inversion(n,a));