import java.util.*;
class Main{
    public static void main(String[] args){
      	Scanner sc=new Scanner(System.in);
        String S=sc.next();
      	boolean f= (S.charAt(0)==S.charAt(1))&&(S.charAt(2)==S.charAt(1));
      	System.out.println(f?"No":"Yes");
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
      	Scanner sc=new Scanner(System.in);
        String S=sc.next();
      	boolean f= (S.charAt(0)==S.charAt(1))&&(S.charAt(2)==S.charAt(1));
      	System.out.println(f?"No":"Yes");
    }
} Main public static void main(String[] args){
      	Scanner sc=new Scanner(System.in);
        String S=sc.next();
      	boolean f= (S.charAt(0)==S.charAt(1))&&(S.charAt(2)==S.charAt(1));
      	System.out.println(f?"No":"Yes");
    } main {
      	Scanner sc=new Scanner(System.in);
        String S=sc.next();
      	boolean f= (S.charAt(0)==S.charAt(1))&&(S.charAt(2)==S.charAt(1));
      	System.out.println(f?"No":"Yes");
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String S=sc.next(); S sc.next() sc.next sc boolean f= (S.charAt(0)==S.charAt(1))&&(S.charAt(2)==S.charAt(1)); f (S.charAt(0)==S.charAt(1))&&(S.charAt(2)==S.charAt(1)) (S.charAt(0)==S.charAt(1)) S.charAt(0) S.charAt S 0 S.charAt(1) S.charAt S 1 (S.charAt(2)==S.charAt(1)) S.charAt(2) S.charAt S 2 S.charAt(1) S.charAt S 1 System.out.println(f?"No":"Yes") System.out.println System.out System System.out f?"No":"Yes" f "No" "Yes" String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
      	Scanner sc=new Scanner(System.in);
        String S=sc.next();
      	boolean f= (S.charAt(0)==S.charAt(1))&&(S.charAt(2)==S.charAt(1));
      	System.out.println(f?"No":"Yes");
    }
}