#include
#include
#include
#pragma GCC optimize("Ofast")
#define ll long long
#define ld long double
using namespace std;
signed main() {
srand(time(NULL));
ll n;
cin >> n;
ld sum50 = 0, sum49 = 0,am50=0,am49=0;
ll a[n];
for(ll i = 0; i < n; i++){
a[i] = rand() % 101;
cout << a[i] << " ";</strong>
if(a[i] >= 50){
sum50 += a[i];
am50++;
}
else{
sum49 += a[i];
am49++;
}
}
cout << "\n" << "Среднее значение элементов, больших или раных 50: " << sum50/am50 << "\n";</strong>
cout << "Среднее значение элементов,меньших 50: " << sum49/am49;</strong>
}