import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        
        String str = sc.next();
        int a_counter = 0;
        int b_counter = 0;
        
        
        for(int i = 0; i < 3; ++i) {
            char c = str.charAt(i);
            if(c == 'A') ++a_counter;
            else ++b_counter;
        }
        
        if((a_counter > 0) && (b_counter >0)) System.out.println("Yes");
        else System.out.println("No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        
        String str = sc.next();
        int a_counter = 0;
        int b_counter = 0;
        
        
        for(int i = 0; i < 3; ++i) {
            char c = str.charAt(i);
            if(c == 'A') ++a_counter;
            else ++b_counter;
        }
        
        if((a_counter > 0) && (b_counter >0)) System.out.println("Yes");
        else System.out.println("No");
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        
        String str = sc.next();
        int a_counter = 0;
        int b_counter = 0;
        
        
        for(int i = 0; i < 3; ++i) {
            char c = str.charAt(i);
            if(c == 'A') ++a_counter;
            else ++b_counter;
        }
        
        if((a_counter > 0) && (b_counter >0)) System.out.println("Yes");
        else System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);
        
        String str = sc.next();
        int a_counter = 0;
        int b_counter = 0;
        
        
        for(int i = 0; i < 3; ++i) {
            char c = str.charAt(i);
            if(c == 'A') ++a_counter;
            else ++b_counter;
        }
        
        if((a_counter > 0) && (b_counter >0)) System.out.println("Yes");
        else System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int a_counter = 0; a_counter 0 int b_counter = 0; b_counter 0 for(int i = 0; i < 3; ++i) {
            char c = str.charAt(i);
            if(c == 'A') ++a_counter;
            else ++b_counter;
        } int i = 0; int i = 0; i 0 i < 3 i 3 ++i ++i i {
            char c = str.charAt(i);
            if(c == 'A') ++a_counter;
            else ++b_counter;
        } {
            char c = str.charAt(i);
            if(c == 'A') ++a_counter;
            else ++b_counter;
        } char c = str.charAt(i); c str.charAt(i) str.charAt str i if(c == 'A') ++a_counter;
            else ++b_counter; c == 'A' c 'A' ++a_counter a_counter ++b_counter b_counter if((a_counter > 0) && (b_counter >0)) System.out.println("Yes");
        else System.out.println("No"); (a_counter > 0) && (b_counter >0) (a_counter > 0) a_counter 0 (b_counter >0) b_counter 0 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String args[] args public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        
        String str = sc.next();
        int a_counter = 0;
        int b_counter = 0;
        
        
        for(int i = 0; i < 3; ++i) {
            char c = str.charAt(i);
            if(c == 'A') ++a_counter;
            else ++b_counter;
        }
        
        if((a_counter > 0) && (b_counter >0)) System.out.println("Yes");
        else System.out.println("No");
    }
} public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        
        String str = sc.next();
        int a_counter = 0;
        int b_counter = 0;
        
        
        for(int i = 0; i < 3; ++i) {
            char c = str.charAt(i);
            if(c == 'A') ++a_counter;
            else ++b_counter;
        }
        
        if((a_counter > 0) && (b_counter >0)) System.out.println("Yes");
        else System.out.println("No");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        
        String str = sc.next();
        int a_counter = 0;
        int b_counter = 0;
        
        
        for(int i = 0; i < 3; ++i) {
            char c = str.charAt(i);
            if(c == 'A') ++a_counter;
            else ++b_counter;
        }
        
        if((a_counter > 0) && (b_counter >0)) System.out.println("Yes");
        else System.out.println("No");
    }
}