{"raw_statement":[{"iden":"problem statement","content":"You are given an integer sequence $x$ of length $N$. Determine if there exists an integer sequence $a$ that satisfies all of the following conditions, and if it exists, construct an instance of $a$.\n\n*   $a$ is $N^2$ in length, containing $N$ copies of each of the integers $1$, $2$, $...$, $N$.\n*   For each $1 ≤ i ≤ N$, the $i$\\-th occurrence of the integer $i$ from the left in $a$ is the $x_i$\\-th element of $a$ from the left."},{"iden":"constraints","content":"*   $1 ≤ N ≤ 500$\n*   $1 ≤ x_i ≤ N^2$\n*   All $x_i$ are distinct."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$N$\n$x_1$ $x_2$ $...$ $x_N$"},{"iden":"sample input 1","content":"3\n1 5 9"},{"iden":"sample output 1","content":"Yes\n1 1 1 2 2 2 3 3 3\n\nFor example, the second occurrence of the integer $2$ from the left in $a$ in the output is the fifth element of $a$ from the left. Similarly, the condition is satisfied for the integers $1$ and $3$."},{"iden":"sample input 2","content":"2\n4 1"},{"iden":"sample output 2","content":"No"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}