import java.util.*;
public class Main  {
   public static void main(String[] args) throws java.lang.Exception  {
      Scanner sc = new Scanner(System.in);
      
      String  a = sc.next();
         
      char aa = a.charAt(0);
      char bb = a.charAt(1);
      char cc = a.charAt(2);
         
      if (aa == bb && bb == cc) {
         System.out.println("No");
      } else {
         System.out.println("Yes");
      }
   }        
} import java.util.*; util.* java public class Main  {
   public static void main(String[] args) throws java.lang.Exception  {
      Scanner sc = new Scanner(System.in);
      
      String  a = sc.next();
         
      char aa = a.charAt(0);
      char bb = a.charAt(1);
      char cc = a.charAt(2);
         
      if (aa == bb && bb == cc) {
         System.out.println("No");
      } else {
         System.out.println("Yes");
      }
   }        
} Main public static void main(String[] args) throws java.lang.Exception  {
      Scanner sc = new Scanner(System.in);
      
      String  a = sc.next();
         
      char aa = a.charAt(0);
      char bb = a.charAt(1);
      char cc = a.charAt(2);
         
      if (aa == bb && bb == cc) {
         System.out.println("No");
      } else {
         System.out.println("Yes");
      }
   } main {
      Scanner sc = new Scanner(System.in);
      
      String  a = sc.next();
         
      char aa = a.charAt(0);
      char bb = a.charAt(1);
      char cc = a.charAt(2);
         
      if (aa == bb && bb == cc) {
         System.out.println("No");
      } else {
         System.out.println("Yes");
      }
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String  a = sc.next(); a sc.next() sc.next sc char aa = a.charAt(0); aa a.charAt(0) a.charAt a 0 char bb = a.charAt(1); bb a.charAt(1) a.charAt a 1 char cc = a.charAt(2); cc a.charAt(2) a.charAt a 2 if (aa == bb && bb == cc) {
         System.out.println("No");
      } else {
         System.out.println("Yes");
      } aa == bb && bb == cc aa == bb aa bb bb == cc bb cc {
         System.out.println("No");
      } 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 public class Main  {
   public static void main(String[] args) throws java.lang.Exception  {
      Scanner sc = new Scanner(System.in);
      
      String  a = sc.next();
         
      char aa = a.charAt(0);
      char bb = a.charAt(1);
      char cc = a.charAt(2);
         
      if (aa == bb && bb == cc) {
         System.out.println("No");
      } else {
         System.out.println("Yes");
      }
   }        
} public class Main  {
   public static void main(String[] args) throws java.lang.Exception  {
      Scanner sc = new Scanner(System.in);
      
      String  a = sc.next();
         
      char aa = a.charAt(0);
      char bb = a.charAt(1);
      char cc = a.charAt(2);
         
      if (aa == bb && bb == cc) {
         System.out.println("No");
      } else {
         System.out.println("Yes");
      }
   }        
} Main
import java.util.*;
public class Main  {
   public static void main(String[] args) throws java.lang.Exception  {
      Scanner sc = new Scanner(System.in);
      
      String  a = sc.next();
         
      char aa = a.charAt(0);
      char bb = a.charAt(1);
      char cc = a.charAt(2);
         
      if (aa == bb && bb == cc) {
         System.out.println("No");
      } else {
         System.out.println("Yes");
      }
   }        
}
