import java.util.Scanner;
public class Between {

  // between : takes three ints, returns true if the first is between the
  // second two, false otherwise

  public static void main(String[] args) {
    System.out.println(between(5, 1, 6));
  }

}
























public static boolean betweenA(int n, int low, int high) {
  return (n > low && n < high) || (n > high && n < low);
}
public static boolean betweenD(int n, int low, int high) {
  if(n > low && n < high) {
    return true;
  }
  else {
    return false;
  }
}

public static boolean between(int n, int low, int high) {
  Scanner s = new Scanner(System.in);
  n = s.nextInt();
  low = s.nextInt();
  high = s.nextInt();
  if(n > low && n < high) {
    return true;
  }
  else {
    return false;
  }
}

public static boolean between(int n, int low, int high) {
  if(n > low && n < high) {
    System.out.println(true);
  }
  else {
    System.out.println(false);
  }
}
