//question 1
import java.io.*;
public class Q1{
static InputStreamReader in;
static BufferedReader breader = new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args)
{
int a[] = new int[5];
int i,max,min;
try{
for(i=0;i