package LRRR;
import java.util.*;
public class LRRRRRR { public static void main(String[] args)
{
Scanner scanner=new Scanner(System.in);
int a[]=new int[4];
int i;
int max,min;
for(i=0;i<4;i++) {
a[i] =scanner.nextInt();
}
for(i=0;i<4;i++)
{
System.out.println(a[i]);
}
max=a[0];
for(i=1;i<4;i++)
{
if(a[i]>max)
max=a[i];
}
System.out.println("最高分数为:"+max);
for(i=3;i>=0;i--)
{
System.out.println(a[i]);
}
min=a[3];
for(i=3;i>=0;i--)
{
if(a[i]<min) min=a[i];
}
System.out.println("最低分数为:"+min);
scanner.close();
}
}