import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        String input = stdIn.next();

        //System.out.println(input);

        if("AAA".equals(input) || "BBB".equals(input)) {
        	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 stdIn = new Scanner(System.in);

        String input = stdIn.next();

        //System.out.println(input);

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

        String input = stdIn.next();

        //System.out.println(input);

        if("AAA".equals(input) || "BBB".equals(input)) {
        	System.out.println("No");
        }else {
        	System.out.println("Yes");
        }
    } main {
        Scanner stdIn = new Scanner(System.in);

        String input = stdIn.next();

        //System.out.println(input);

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

        String input = stdIn.next();

        //System.out.println(input);

        if("AAA".equals(input) || "BBB".equals(input)) {
        	System.out.println("No");
        }else {
        	System.out.println("Yes");
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        String input = stdIn.next();

        //System.out.println(input);

        if("AAA".equals(input) || "BBB".equals(input)) {
        	System.out.println("No");
        }else {
        	System.out.println("Yes");
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        String input = stdIn.next();

        //System.out.println(input);

        if("AAA".equals(input) || "BBB".equals(input)) {
        	System.out.println("No");
        }else {
        	System.out.println("Yes");
        }
    }
}