import java.util.Scanner;
public class Exercise02
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
double[] arr = new double[6];
//给数组数赋值
for(int i=0;i<arr.length;i++)
{
arr[i] = scan.nextDouble();
}
//在控制台输出
for(int i=0;i<arr.length;i++)
{
System.out.print(arr[i]+"\t");
}
//计算平均值
int sum = 0;
for(int i = 0;i<arr.length;i++)
{
sum += arr[i];
}
int temp0 = (int)(sum/arr.length)*100;
double pj = temp0 * 0.01;
System.out.print(temp0);
//求最大值
double max = 0;
for(int i = 0; i<arr.length;i++)
{
if(arr[i]>max)
{
max = arr[i];
}
}
System.out.println("最大值为"+max);
//求最小值
double temp = 0;
for(int i = 0; i<arr.length;i++)
{
if(arr[i]<temp)
{
temp = arr[i];
}
}
System.out.println("最小值为"+temp);
}
}