小鱼比可爱 n = int(input()) lis = list(map(int,input().split())) res = [0] for i in range(1,n): count = 0 for j in range(i): if lis[i] > lis[j]: count += 1 res.append(count) a = ''.join(str(i) + ' ' for i in res) print(a[:-1])