#include<stdio.h>

struct Body{
	int id;
	int weight;
	int height;
};

void swap(struct Body *x,struct Body *y){
	struct Body w=*x;
	*x=*y;
	*y=w;
}

int main(){
	struct Body a[5]={
		{1,65,169},
		{2,73,170},
		{3,59,161},
		{4,79,175},
		{5,55,168}
	};

	for(int i=0;i<4;i++){
		for(int j=0;j<4-i;j++){
			if(a[j].height<a[j+1].height){
				swap(&a[j],&a[j+1]);
			}
		}
	}

    for(int i=0;i<5;i++){
		printf("%d, %d, %d\n",a[i].id,a[i].weight,a[i].height);
	}

	return 0;
}