#include <stdio.h>

// Function to find and print the order of cheaters
void findCheaters(int n, int a[]) {
    int cheaters[n + 1]; // Array to store the order of cheaters
    for (int i = 0; i <= n; i++)
        cheaters[i] = 0; // Initialize all elements to 0

    // Iterate through the array 'a' to find the cheaters' order
    for (int i = 0; i < n; i++) {
        cheaters[a[i]] = i + 1; // Store the order of each cheater
    }

    // Print the order of cheaters
    for (int i = 1; i <= n; i++) {
        printf("%d ", cheaters[i]); // Print the order of each cheater
    }
    printf("\n");
}

int main() {
    int t;
    scanf("%d", &t); // Input number of test cases

    while (t--) {
        int n;
        scanf("%d", &n); // Input number of students
        int a[n];
        for (int i = 0; i < n; i++) {
            scanf("%d", &a[i]); // Input the ids of the students
        }

        // Function call to find and print the cheaters' order
        findCheaters(n, a);
    }

    return 0;
}
