import java.util.*;
public class MinAndMax {
  
  
  public static void main(String[] args) { 
    Scanner s = new Scanner(System.in);
    
    System.out.print("Enter a number: ");
    int first = s.nextInt();
    
    System.out.print("Enter a number: ");
    int second = s.nextInt();
    
    System.out.print("Enter a number: ");
    int third = s.nextInt();
    
    if(first > second)
      System.out.println(first+" is the maximum.");
    else
      System.out.println(second+" is the maximum.");
    /*
    String message = (first>second? first: second) + " is the maximum.";
    
    System.out.println(message);
    */
    int max;
    if(first > second) {
      if(first > third){
           max = first;
      }else{ //third > first > second
           max = third;
      }
    }else { //second > first
      if(second > third) {
        max = second;
      }else {//third > second > first
        max = third;
      }
    }
    
    int max = first;
    if(second > max)
      max = second;
    if(third > max)
      max = third;
  }
  
  /* ADD YOUR CODE HERE */
  
}
