- Time limit: 1.00 s
- Memory limit: 512 MB
Given a list of integers, your task is to calculate for each element :
- the number of elements such that
- the number of elements such that
- the number of elements such that
Input
The first line has an integer : the size of the list.
The next line has integers : the elements of the list.
Output
Print lines: for each element the required values.
Constraints
Example
Input:
5 3 7 2 9 2
Output:
3 2 5 4 1 5 2 4 4 1 1 3 2 4 4