import java.io.
*;
public class menoramayor {
public static void main(String[] args)throws IOException {
BufferedReader ent = new BufferedReader(new InputStreamReader(Sy
stem.in));
Double no1,no2,no3;
System.out.print("ingrese numero 1=");
no1=Double.parseDouble(ent.readLine());
System.out.print("ingrese numero 2=");
no2=Double.parseDouble(ent.readLine());
System.out.print("ingrese numero 3=");
no3=Double.parseDouble(ent.readLine());
if(no1>no2 && no1>no3 )
{
System.out.print("el numero mayor es " + no1);
}
if( no2>no1 && no2>no3)
{
System.out.print("el numero mayor es " + no2);
}
if( no3>no1 && no3>no2)
{
System.out.print("el numero mayor es " + no3);
}
if(no1<no2 && no1<no3 )
{
System.out.print("el numero menor es " + no1);
}
if( no2<no1 && no2<no3)
{
System.out.print("el numero menor es " + no2);
}
if( no3<no1 && no3<no2)
{
System.out.print("el numero menor es " + no3);
}
if(no1<no2 && no1>no3 )
{
System.out.print("el numero menor es " + no1);
}
if( no2>no1 && no2<no3)
{
System.out.print("el numero menor es " + no2);
}
if( no3>no1 && no3<no2)
{
System.out.print("el numero menor es " + no3);
}
}
}