public class IfElse2 {
  public static void main(String[] args) {
    double d = Math.random();
    System.out.print("The number " + d);
    if (d < 1.0/3.0) {
      System.out.println(" is low");
    }
    else if (d < 2.0/3.0) {
      System.out.println(" is middle");
    }
    else {
      System.out.println(" is high");
    }
  }
}