import java.util.Scanner;
public class array {
public static int[] inputData(){
Scanner keyboard = new Scanner(System.in);
int arrayIn[] = new int[5];
for (int i=0; i<=4; i++) {
System.out.print("No "+ (i+1)+" is ");
arrayIn[i] = keyboard.nextInt();
}
return arrayIn;
}
public static void findMax(){
int max=0;
for(int i=0;i<5;i++){
if (arrayIn[i]>max)
max=arrayIn[i];
}
}
public static void findMin(){
int min=9999;
for(int i=0;i<5;i++){
if (arrayIn[i]<min)
min=arrayIn[i];
}
}
public static void sumNum(){
int total=0;
for (int i=0;i<5;i++){
total=total+arrayIn[i];
}
return total;
}
public static void average(){
float avg=0;
avg=total/i
}
public static void showStat(){
System.out.println("Max is" +max+ " Min is " +min+ " Sum is "+total+ " Average is "+avg);
}
public static void main(String args[]){
int[]arrayIn = inputData();
//int max = findMax();
System.out.println(arrayIn[0] +"-"+ arrayIn[1]+"-"+arrayIn[2]+"-"+arrayIn[3]+"-"+arrayIn[4]);
findMin();
findMax();
sumNum();
average();
showStat();
}
}