#include <stdio.h>
struct Body{
	int id;
	int weight;
	int height;
};
void swap(struct Body *x,struct Body *y);
int main(void) {
	// your code goes here
	 struct Body a[]={{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;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;
}
void swap(struct Body*x,struct Body*y){
	struct Body temp;
	temp=*x;
	*x=*y;
	*y=temp;
}