- Time limit: 2.00 s
- Memory limit: 512 MB
The economy of Syrjälä is booming and industries over all the sectors are growing at breakneck speeds. To move all the raw resources and consumer goods in and out of Syrjälä, new trains arrive every day. Uolevi is in charge of managing Syrjälä's train terminal. He knows the upcoming schedule for days. On the -th day a new train begins it's operation and arrives every days to the terminal. Help Uolevi find the number of rails the terminal needs for housing all the trains that arrive on the -th day.
Input
The first line contains a single integer . The second line contains integers .
Output
For each of the days print the number of trains that arrive to the terminal during that day. Print the answers on a single line with space as follows:
Constraints
Example 1
Input:
5 2 3 3 3 1
Output:
1 1 2 1 3
Example 2
Input:
10 10 8 10 1 2 4 10 2 3 1
Output:
1 1 1 1 2 2 3 2 3 5