{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"N (2 \u0026lt;\u003d N \u0026lt;\u003d 8,000) cows have unique brands in the range 1..N. In a spectacular display of poor judgment, they visited the neighborhood \u0027watering hole\u0027 and drank a few too many beers before dinner. When it was time to line up for their evening meal, they did not line up in the required ascending numerical order of their brands.\r\u003cbr\u003e\r\u003cbr\u003eRegrettably, FJ does not have a way to sort them. Furthermore, he\u0027s not very good at observing problems. Instead of writing down each cow\u0027s brand, he determined a rather silly statistic: For each cow in line, he knows the number of cows that precede that cow in line that do, in fact, have smaller brands than that cow.\r\u003cbr\u003e\r\u003cbr\u003eGiven this data, tell FJ the exact ordering of the cows.\r\u003cbr\u003e"}},{"title":"Input","value":{"format":"HTML","content":"* Line 1: A single integer, N\r\u003cbr\u003e\r\u003cbr\u003e* Lines 2..N: These N-1 lines describe the number of cows that precede a given cow in line and have brands smaller than that cow. Of course, no cows precede the first cow in line, so she is not listed. Line 2 of the input describes the number of preceding cows whose brands are smaller than the cow in slot #2; line 3 describes the number of preceding cows whose brands are smaller than the cow in slot #3; and so on.\r\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"* Lines 1..N: Each of the N lines of output tells the brand of a cow in line. Line #1 of the output tells the brand of the first cow in line; line 2 tells the brand of the second cow; and so on."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e5\r\n1\r\n2\r\n1\r\n0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\r\n4\r\n5\r\n3\r\n1\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}