#include <stdio.h>
typedef struct{
  int id,weight,height;
}Body;

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