#include <stdio.h>

struct Body{
	int id;
	int weight;
	int height;
}Body;
	
int swap(struct Body *x, struct Body *y){
	struct Body temp=*y;
	*y=*x;
	*x=temp;
}	
	
int main(void){
	
	struct Body A[]={
	{1, 65, 169},
	{2, 73, 170},
	{3, 59, 161},
	{4, 79, 175},
	{5, 55, 168}};
	
	int size=sizeof(A)/sizeof(A[0]);
	
	for(int i=0; i<size-1; i++){
		for(int j=i+1; j<size; j++){
			if(A[i].height < A[j].height){
			swap(&A[i], &A[j]);}
		}
	}
	for(int k=0; k<size; k++){
		printf("%d : %d : %d\n",A[k].id, A[k].weight, A[k].height);
		
	}

	return 0;
}
