#include <stdio.h> #include <iostream> using namespace std; int main() { int n; cin >> n; int sum = 0; int top = 0; int low = 100; int score; for (int i = 0; i < n; i++) { cin >> score; if (score > top) top = score; if (score < low) low = score; sum += score; } printf("%d\n%d\n%.2lf", top, low, (sum * 1.0 / n)); return 0; }