#include <stdio.h>

struct Body{
    int id,weight,height;
}Body;
void swap(struct Body *person1,struct Body *person2){
    struct Body temp=*person1;
    *person1=*person2;
    *person2=temp;
}
int main(void) {
  struct Body body[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=i+1;j<5;j++){
            if(body[i].height<body[j].height){
            swap(&body[i],&body[j]);
            }
        }
  }
    for(int i=0;i<5;i++){
    printf("%d, %d, %d\n",body[i].id,body[i].weight,body[i].height);
}
    return 0;
}