import java.util.Scanner;
public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   String n=kbd.next();
   if(n.equals("AAA")||n.equals("BBB"))
   {
     System.out.println("No");
   }else{
     System.out.println("Yes");
   }

}
} import java.util.Scanner; Scanner java.util public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   String n=kbd.next();
   if(n.equals("AAA")||n.equals("BBB"))
   {
     System.out.println("No");
   }else{
     System.out.println("Yes");
   }

}
} Main public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   String n=kbd.next();
   if(n.equals("AAA")||n.equals("BBB"))
   {
     System.out.println("No");
   }else{
     System.out.println("Yes");
   }

} main {
   Scanner kbd = new Scanner(System.in);
   String n=kbd.next();
   if(n.equals("AAA")||n.equals("BBB"))
   {
     System.out.println("No");
   }else{
     System.out.println("Yes");
   }

} Scanner kbd = new Scanner(System.in); kbd new Scanner(System.in) String n=kbd.next(); n kbd.next() kbd.next kbd if(n.equals("AAA")||n.equals("BBB"))
   {
     System.out.println("No");
   }else{
     System.out.println("Yes");
   } n.equals("AAA")||n.equals("BBB") n.equals("AAA") n.equals n "AAA" n.equals("BBB") n.equals n "BBB" {
     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) {
   Scanner kbd = new Scanner(System.in);
   String n=kbd.next();
   if(n.equals("AAA")||n.equals("BBB"))
   {
     System.out.println("No");
   }else{
     System.out.println("Yes");
   }

}
} public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   String n=kbd.next();
   if(n.equals("AAA")||n.equals("BBB"))
   {
     System.out.println("No");
   }else{
     System.out.println("Yes");
   }

}
} Main
import java.util.Scanner;
public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   String n=kbd.next();
   if(n.equals("AAA")||n.equals("BBB"))
   {
     System.out.println("No");
   }else{
     System.out.println("Yes");
   }

}
}
