#include <bits/stdc++.h>
using namespace std;
int n;
long double A[100005], maxx, s = 0;
long double cnt = 0;
int main()
{
cin >> n;
for(int i = 1, i < = n; i++) cin >> A[i];
maxx = -18;
for(int i = 1, i <= n; i++)
{
maxx = max(maxx , A[i]);
if ([A] > 0)
{
s = s + A[i];
cnt++;
}
}
if(cnt)
cout << s/cnt << endl;
else cout << 0 << endl;
cout << maxx;
return 0;
}


83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?