import java.util.Scanner;
public class k20 {
public static void main(String[] args){
Scanner in=new Scanner(System.in);
int a,b,c,max,min;
System.out.println("请输入第一个值:");
a=in.nextInt();
System.out.println("请输入第二个值:");
b=in.nextInt();
System.out.println("请输入第三个值:");
c=in.nextInt();
if(a>b){
min=b;
max=a;
if(c>max){
max=c;
}
else{
min=c;
}
}
else{
max=b;
min=a;
if(c>max){
max=c;
}
else{
min=c;
}
}
System.out.println(a+"、"+b+"、"+c+"三个数中最大值是:"+max);
System.out.println(a+"、"+b+"、"+c+"三个数中最小值是:"+min);
}
}