import java.util.*;
import java.lang.*;
public class Main {
    public static void main(String args[]) {
      Scanner sc = new Scanner(System.in);
     String str=sc.nextLine();
     String s1=str.substring(0);
      char c1=str.charAt(0);
      char c2=str.charAt(1);
      char c3= str.charAt(2);
     
      if(c1==c2 && c2==c3)
      System.out.println("No");
      else
      System.out.println("Yes");
      }
    
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main {
    public static void main(String args[]) {
      Scanner sc = new Scanner(System.in);
     String str=sc.nextLine();
     String s1=str.substring(0);
      char c1=str.charAt(0);
      char c2=str.charAt(1);
      char c3= str.charAt(2);
     
      if(c1==c2 && c2==c3)
      System.out.println("No");
      else
      System.out.println("Yes");
      }
    
} Main public static void main(String args[]) {
      Scanner sc = new Scanner(System.in);
     String str=sc.nextLine();
     String s1=str.substring(0);
      char c1=str.charAt(0);
      char c2=str.charAt(1);
      char c3= str.charAt(2);
     
      if(c1==c2 && c2==c3)
      System.out.println("No");
      else
      System.out.println("Yes");
      } main {
      Scanner sc = new Scanner(System.in);
     String str=sc.nextLine();
     String s1=str.substring(0);
      char c1=str.charAt(0);
      char c2=str.charAt(1);
      char c3= str.charAt(2);
     
      if(c1==c2 && c2==c3)
      System.out.println("No");
      else
      System.out.println("Yes");
      } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str=sc.nextLine(); str sc.nextLine() sc.nextLine sc String s1=str.substring(0); s1 str.substring(0) str.substring str 0 char c1=str.charAt(0); c1 str.charAt(0) str.charAt str 0 char c2=str.charAt(1); c2 str.charAt(1) str.charAt str 1 char c3= str.charAt(2); c3 str.charAt(2) str.charAt str 2 if(c1==c2 && c2==c3)
      System.out.println("No");
      else
      System.out.println("Yes"); c1==c2 && c2==c3 c1==c2 c1 c2 c2==c3 c2 c3 System.out.println("No") System.out.println System.out System System.out "No" 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 sc = new Scanner(System.in);
     String str=sc.nextLine();
     String s1=str.substring(0);
      char c1=str.charAt(0);
      char c2=str.charAt(1);
      char c3= str.charAt(2);
     
      if(c1==c2 && c2==c3)
      System.out.println("No");
      else
      System.out.println("Yes");
      }
    
} public class Main {
    public static void main(String args[]) {
      Scanner sc = new Scanner(System.in);
     String str=sc.nextLine();
     String s1=str.substring(0);
      char c1=str.charAt(0);
      char c2=str.charAt(1);
      char c3= str.charAt(2);
     
      if(c1==c2 && c2==c3)
      System.out.println("No");
      else
      System.out.println("Yes");
      }
    
} Main
import java.util.*;
import java.lang.*;
public class Main {
    public static void main(String args[]) {
      Scanner sc = new Scanner(System.in);
     String str=sc.nextLine();
     String s1=str.substring(0);
      char c1=str.charAt(0);
      char c2=str.charAt(1);
      char c3= str.charAt(2);
     
      if(c1==c2 && c2==c3)
      System.out.println("No");
      else
      System.out.println("Yes");
      }
    
}