#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int arr[5];
int cnt = 0;
for (int i = 0;i < 5;i++) {
cin >> arr[i];
cnt += arr[i];
}
cout << cnt / 5 << "\n";
sort(arr,arr+5);
cout << arr[2];
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: