void printStu(const int n) { int tmp = 0; int arr[100] = {0}; for (int i = 0; i < n; i++) { scanf("%d", &arr[i]); } for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { if (arr[i] < arr[j]) { tmp = arr[i]; arr[i] = arr[j]; arr[j] = tmp; } } } for (int i = 0; i < 5; i++) { printf("%d ", arr[i]); } } int main() { int n = 0; scanf("%d", &n); printStu(n); return 0; }