selectionSort(int A[],int N)
{
	int i,j,k;
	k=i;
		for(j=i; j < N; j++){
			if(A[j]<A[k]){k=j;}
		}
		if(A[i]!=A[k]){
		temp = A[i];
		A[i] = A[k];
		A[k] = temp;
		number++;
		}
	}
	
	for(i = 0; i < N; i++)
	printf("%d ",A[i]);
	putchar('\n');
	
	printf("%d",number);
}