{"trustable":false,"sections":[{"title":"描述","value":{"format":"PLAIN","content":"有n只小动物,每只都有一个独特的编号,分别从1到n。现在他们从左到右依次排在一条直线上,顺序是乱的。\n现在,我们只知道每个位置前面有几个比他小的数。请你根据给出的信息计算出每个位置上的数是多少。\nn\u003c\u003d8000。"}},{"title":"Input","value":{"format":"PLAIN","content":"输入第一行是一个正整数n,表示小动物的数量。\n接下来有n-1个数,第i个数表示在第i+1个位置以前有多少个比第i+1个位置上的数小的数。\n"}},{"title":"Output","value":{"format":"PLAIN","content":"输出n行,每行一个整数,表示对应位置小动物的编号。"}},{"title":"Sample Input","value":{"format":"PLAIN","content":"5\n1\n2\n1\n0"}},{"title":"Sample Output","value":{"format":"PLAIN","content":"2\n4\n5\n3\n1"}},{"title":"样例解释","value":{"format":"PLAIN","content":"输入表示第2个位置前有1个比第3个位置小。\n第3个位置前有2个比第3个位置小。\n第4个位置前有1个比第4个位置小。\n第5个位置前有0个比第5个位置小。"}}]}