import java.util.Scanner;
import java.util.Arrays;
class Main{
public static void main(String[] args){
 Scanner scan = new Scanner(System.in);
 
 String S = scan.next();
 String[] split = S.split("");
  
   if (split[0].equals(split[1]) && split[1].equals(split[2]))
 	 System.out.println("No");
   else {
     System.out.println("Yes");
  }
 }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main{
public static void main(String[] args){
 Scanner scan = new Scanner(System.in);
 
 String S = scan.next();
 String[] split = S.split("");
  
   if (split[0].equals(split[1]) && split[1].equals(split[2]))
 	 System.out.println("No");
   else {
     System.out.println("Yes");
  }
 }
} Main public static void main(String[] args){
 Scanner scan = new Scanner(System.in);
 
 String S = scan.next();
 String[] split = S.split("");
  
   if (split[0].equals(split[1]) && split[1].equals(split[2]))
 	 System.out.println("No");
   else {
     System.out.println("Yes");
  }
 } main {
 Scanner scan = new Scanner(System.in);
 
 String S = scan.next();
 String[] split = S.split("");
  
   if (split[0].equals(split[1]) && split[1].equals(split[2]))
 	 System.out.println("No");
   else {
     System.out.println("Yes");
  }
 } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String S = scan.next(); S scan.next() scan.next scan String[] split = S.split(""); split S.split("") S.split S "" if (split[0].equals(split[1]) && split[1].equals(split[2]))
 	 System.out.println("No");
   else {
     System.out.println("Yes");
  } split[0].equals(split[1]) && split[1].equals(split[2]) split[0].equals(split[1]) split[0].equals split[0] split 0 split[1] split 1 split[1].equals(split[2]) split[1].equals split[1] split 1 split[2] split 2 System.out.println("No") System.out.println System.out System System.out "No" {
     System.out.println("Yes");
  } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args
import java.util.Scanner;
import java.util.Arrays;
class Main{
public static void main(String[] args){
 Scanner scan = new Scanner(System.in);
 
 String S = scan.next();
 String[] split = S.split("");
  
   if (split[0].equals(split[1]) && split[1].equals(split[2]))
 	 System.out.println("No");
   else {
     System.out.println("Yes");
  }
 }
}