import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    String answer = "No";
    if(S.charAt(0) != S.charAt(1) || S.charAt(1) != S.charAt(2))answer = "Yes";
    System.out.println(answer);
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    String answer = "No";
    if(S.charAt(0) != S.charAt(1) || S.charAt(1) != S.charAt(2))answer = "Yes";
    System.out.println(answer);
  }
} Main public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    String answer = "No";
    if(S.charAt(0) != S.charAt(1) || S.charAt(1) != S.charAt(2))answer = "Yes";
    System.out.println(answer);
  } main {
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    String answer = "No";
    if(S.charAt(0) != S.charAt(1) || S.charAt(1) != S.charAt(2))answer = "Yes";
    System.out.println(answer);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String S = scanner.nextLine(); S scanner.nextLine() scanner.nextLine scanner String answer = "No"; answer "No" if(S.charAt(0) != S.charAt(1) || S.charAt(1) != S.charAt(2))answer = "Yes"; S.charAt(0) != S.charAt(1) || S.charAt(1) != S.charAt(2) S.charAt(0) != S.charAt(1) S.charAt(0) S.charAt S 0 S.charAt(1) S.charAt S 1 S.charAt(1) != S.charAt(2) S.charAt(1) S.charAt S 1 S.charAt(2) S.charAt S 2 answer = "Yes" answer "Yes" System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    String answer = "No";
    if(S.charAt(0) != S.charAt(1) || S.charAt(1) != S.charAt(2))answer = "Yes";
    System.out.println(answer);
  }
} public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    String answer = "No";
    if(S.charAt(0) != S.charAt(1) || S.charAt(1) != S.charAt(2))answer = "Yes";
    System.out.println(answer);
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String S = scanner.nextLine();
    String answer = "No";
    if(S.charAt(0) != S.charAt(1) || S.charAt(1) != S.charAt(2))answer = "Yes";
    System.out.println(answer);
  }
}