#C9713. Branch Employee Analysis
Branch Employee Analysis
Branch Employee Analysis
You are given the number of branches in a company and the number of employees in each branch. Your task is to calculate the minimum, maximum, and the average number of employees across all branches. The average is computed by performing floor division on the sum of employees over the number of branches.
The formula for the average is given by: $$\text{average} = \left\lfloor \frac{\sum_{i=1}^{n}{a_i}}{n} \right\rfloor$$, where \(a_i\) is the number of employees at the \(i^{th}\) branch and \(n\) is the total number of branches.
inputFormat
The input is read from stdin. The first line contains an integer \(n\) representing the number of branches. The second line contains \(n\) space-separated integers, where the \(i^{th}\) integer represents the number of employees in the \(i^{th}\) branch.
outputFormat
Print three space-separated integers on a single line: the minimum number of employees, the maximum number of employees, and the floor average number of employees across all branches. The output should be written to stdout.
## sample5
10 20 30 40 50
10 50 30
</p>