//Largest second number using ternary operator
public class Main
{
public static void main(String[] args)
{
int a=5,b=6,c=7;
int x = (a >= b && a >= c) ? ((b >= c) ? b : c) :
((b >= c) ? ((a >= c) ? a : c) : ((a >= b) ? a : b));
System.out.println(x);
}
}