#CCBCHBAHAI0000179. Quà tặng (Presents)

Quà tặng (Presents)

Presents

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem

There are nn friends numbered 11 through nn. Friend ii gives a present to friend pip_i. The sequence p1,p2,…,pnp_1,p_2,\ldots,p_n is a permutation of 1,2,…,n1,2,\ldots,n, so every friend receives exactly one present.

For every friend jj, determine who gave a present to jj.

Equivalently, construct the inverse permutation qq satisfying

qpi=i(1≤i≤n).q_{p_i}=i\qquad(1\le i\le n).

Input

  • The first line contains nn.
  • The second line contains the permutation p1,p2,…,pnp_1,p_2,\ldots,p_n.

Output

Print q1,q2,…,qnq_1,q_2,\ldots,q_n.

Subtasks

Subtask 1 (20 points): 1≤n≤101\le n\le 10; p1,p2,…,pnp_1,p_2,\ldots,p_n is a permutation of 1,2,…,n1,2,\ldots,n.

Subtask 2 (30 points): 1≤n≤501\le n\le 50; p1,p2,…,pnp_1,p_2,\ldots,p_n is a permutation of 1,2,…,n1,2,\ldots,n.

Subtask 3 (50 points): 1≤n≤1001\le n\le 100; p1,p2,…,pnp_1,p_2,\ldots,p_n is a permutation of 1,2,…,n1,2,\ldots,n.

Example

Input

4
2 3 4 1

Output

4 1 2 3

Explanation

Since p1=2,p2=3,p3=4,p4=1p_1=2,p_2=3,p_3=4,p_4=1, the givers for friends 1,2,3,4 are 4,1,2,3.