Party gathering
Sakurako has friends. Each of them can be described by their contribution on the competitive programming web-page CodeCoders. Friend is described by a number — his contribution.
Right now, within these friends, friend is familiar with friend if and only if . Sakurako wants to gather as many people as possible to the party. However, he wants for all of them to be unfamiliar with each other.
Formally, if he chose to invite a set of people , then for every where , the condition must be fulfilled.
Out of all possible sets of people, he wants to know the size of the largest one.
Unfortunately, Sakurako doesn't know the value of , so he has to compute the answer for each .
Input
The first line contains one integer () — the amount of Sakurako's friends.
The second line contains integers () — the contribution of each friend.
Output
Output numbers. The -th number denotes the largest size of set for .
Examples
Note
In the first test:
When , ;
For , it can be proven that the largest possible is ;
For , , and , it can be proven that one of the largest possible is ;
For , it can be proven that one of the largest is .
Scoring
( points): for all ;
( points): ;
( points): ;
( points): ;
( points): without additional restrictions.