import java.util.Scanner;
public class CompareThree2{
public static void main(String args[]){
int a,b,c;
Scanner sobjr=new Scanner(System.in);
System.out.println("enter three diffrent no.");
a=sobjr.nextInt();
b=sobjr.nextInt();
c=sobjr.nextInt();
if(a>b){
if(a>c)
{if(b>c)
System.out.println(a+" is largest and " +c+ " is the smallest number");
else
System.out.println(a+" is largest and " +b+ " is the smallest number");
}
}
else if(b>a)
{
if(b>c)
{if(a>c)
System.out.println(b+" is largest and " +c+ " is the smallest number");
else
System.out.println(b+" is largest and " +a+ " is the smallest number");
}
}
else if(c>a)
{
if(c>b)
{if(b>a)
System.out.println(c+" is largest and " +a+ " is the smallest number");
else
System.out.println(c+" is largest and " +b+ " is the smallest number");
}
}
else
System.out.println("numbers are not distinct");
}
}