#include <iostream>
#include <algorithm>
#define SIZE 17
signed main() {
float arr[SIZE];
for (int i = 0; i < SIZE; i++)
std::cin >> arr[i];
for (int i = 0; i < SIZE - 1; i++)
{
int minIdx = i;
for (int j = i + 1; j < SIZE; j++)
if (arr[j] > arr[minIdx])
minIdx = j;
std::swap(arr[i], arr[minIdx]);
}
std::cout << arr[i] << " ";
return 0;
#include <iostream>
#include <algorithm>
#define SIZE 17
signed main() {
float arr[SIZE];
for (int i = 0; i < SIZE; i++)
std::cin >> arr[i];
for (int i = 0; i < SIZE - 1; i++)
{
int minIdx = i;
for (int j = i + 1; j < SIZE; j++)
if (arr[j] > arr[minIdx])
minIdx = j;
std::swap(arr[i], arr[minIdx]);
}
for (int i = 0; i < SIZE; i++)
std::cout << arr[i] << " ";
return 0;
}