import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String station = sc.next();
    String word = "No";
    for (int i = 1; i < 3; i++) {
      if (station.charAt(i-1) != station.charAt(i))
        word = "Yes";
    }
    System.out.println(word);
  }

} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String station = sc.next();
    String word = "No";
    for (int i = 1; i < 3; i++) {
      if (station.charAt(i-1) != station.charAt(i))
        word = "Yes";
    }
    System.out.println(word);
  }

} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String station = sc.next();
    String word = "No";
    for (int i = 1; i < 3; i++) {
      if (station.charAt(i-1) != station.charAt(i))
        word = "Yes";
    }
    System.out.println(word);
  } main {
    Scanner sc = new Scanner(System.in);
    String station = sc.next();
    String word = "No";
    for (int i = 1; i < 3; i++) {
      if (station.charAt(i-1) != station.charAt(i))
        word = "Yes";
    }
    System.out.println(word);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String station = sc.next(); station sc.next() sc.next sc String word = "No"; word "No" for (int i = 1; i < 3; i++) {
      if (station.charAt(i-1) != station.charAt(i))
        word = "Yes";
    } int i = 1; int i = 1; i 1 i < 3 i 3 i++ i++ i {
      if (station.charAt(i-1) != station.charAt(i))
        word = "Yes";
    } {
      if (station.charAt(i-1) != station.charAt(i))
        word = "Yes";
    } if (station.charAt(i-1) != station.charAt(i))
        word = "Yes"; station.charAt(i-1) != station.charAt(i) station.charAt(i-1) station.charAt station i-1 i 1 station.charAt(i) station.charAt station i word = "Yes" word "Yes" System.out.println(word) System.out.println System.out System System.out word String[] args args public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String station = sc.next();
    String word = "No";
    for (int i = 1; i < 3; i++) {
      if (station.charAt(i-1) != station.charAt(i))
        word = "Yes";
    }
    System.out.println(word);
  }

} public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String station = sc.next();
    String word = "No";
    for (int i = 1; i < 3; i++) {
      if (station.charAt(i-1) != station.charAt(i))
        word = "Yes";
    }
    System.out.println(word);
  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String station = sc.next();
    String word = "No";
    for (int i = 1; i < 3; i++) {
      if (station.charAt(i-1) != station.charAt(i))
        word = "Yes";
    }
    System.out.println(word);
  }

}