question here: CodeChef: Practical coding for everyone
my answer:
/* package codechef; // don’t place package name! */
import java.util.;
import java.lang.;
import java.io.*;
import java.lang.Math;
/* Name of the class has to be “Main” only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
Scanner in=new Scanner(System.in);
int a=in.nextInt();
int b=in.nextInt();
int c=in.nextInt();
int first_max=Math.max(a,b);
first_max=Math.min(c,first_max);
System.out.print(first_max);}}