/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
int temp1,temp2,temp3;
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt()){
temp1=sc.nextInt();
temp2=sc.nextInt();
temp3=sc.nextInt();
temp3=(temp1>temp2)?(temp1<temp3?temp1:temp3):(temp2<temp3?temp2:temp3);
System.out.println(temp3);
}
}
}
What is the requirement of this program? Which problem you are attempting to solve ?? Provide more details otherwise it is not clear what you are trying to do.
This is a question from a live contest. Read the Code of Conduct and do not post your code or ask for help about problem(s) from a live contest during the contest.