class largest_smallest_twono
{
public static void main(String args[])
{
int a,b,c,d,x,y;
Scanner sc= new Scanner(System.in);
System.out.println("Enter the two no");
a=sc.nextInt();
b=sc.nextInt();
x=(a>b)?a:b;
System.out.println(x+"is largest");
System.out.println("Enter the two no");
c=sc.nextInt();
d=sc.nextInt();
y=(c<d)?c:d;
System.out.println(y+"is smallest");
}
}