Problem L: 得分排名

Problem L: 得分排名

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

给定 lns="http://www.w3.org/1998/Math/MathML">n 名学生的考试得分,这些学生的学号为 lns="http://www.w3.org/1998/Math/MathML">1 到 lns="http://www.w3.org/1998/Math/MathML">n,其第 lns="http://www.w3.org/1998/Math/MathML">i 号学生的得分为 lns="http://www.w3.org/1998/Math/MathML">ai,请将这些学生按照分数从大到小的顺序排列并输出学号序列。

若两个学生得分相同,则先输出较小的学号。

Input

  • 第一行:单个整数表示 lns="http://www.w3.org/1998/Math/MathML">n
  • 第二行:lns="http://www.w3.org/1998/Math/MathML">n 个整数表示 lns="http://www.w3.org/1998/Math/MathML">a1,a2,,an

数据范围

  • lns="http://www.w3.org/1998/Math/MathML">30% 的数据,lns="http://www.w3.org/1998/Math/MathML">1n100
  • lns="http://www.w3.org/1998/Math/MathML">60% 的数据,lns="http://www.w3.org/1998/Math/MathML">1n3000
  • lns="http://www.w3.org/1998/Math/MathML">100% 的数据,lns="http://www.w3.org/1998/Math/MathML">1n200,000
  • lns="http://www.w3.org/1998/Math/MathML">0ai<1,000,000,000

Output

  • 共 lns="http://www.w3.org/1998/Math/MathML">n 行:每行数字表示相对排名的学号。

Sample Input Copy

3
60 60 100

Sample Output Copy

3
1
2