unittest
{
	assert( [ "3", "2 3 1" ].parse.expand.solve == "3 1 2" );
	assert( [ "5", "1 2 3 4 5" ].parse.expand.solve == "1 2 3 4 5" );
	assert( [ "8", "8 2 7 3 4 5 6 1" ].parse.expand.solve == "8 2 4 5 6 7 3 1" );
}



import std.algorithm;
import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	input.popFront;
	auto as = input.front.split.to!( long[] );
	return tuple( as );
}

auto solve( long[] as )
{
	return zip( as, iota( 1L , as.length.signed + 1 ) ).array.sort().map!( ( a ) => a[ 1 ].to!( string ) ).join( " " );
}
