A sequence of n values is given. For every position i, count how many positions j with j > i have value[j] < value[i] (strictly smaller). Output all n counts in the original order.
Input format
Line 1: an integer n.
Line 2: n space-separated integers, the values.
Output format
n space-separated integers on one line: for each position (in order), the number of strictly smaller values to its right.
Constraints
- 1 ≤ n ≤ 100000
- -1000000000 ≤ value ≤ 1000000000