#include <stdio.h>

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

void swap(Body *a, Body *b) {
    Body x = *a;
    *a = *b;
    *b = x;
}

int main() {
    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 = 0; j < size - i - 1; j++) {
            if (a[j].height < a[j + 1].height) {
                swap(&a[j], &a[j + 1]); 
            }
        }
    }

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

    return 0;
}