import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        char[] station = s.toCharArray();

        if (station[0] == 'A' & station[1] == 'A' & station[2] == 'A') {
            System.out.println("No");
        } else if (station[0] == 'B' & station[1] == 'B' & station[2] == 'B') {
            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 scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        char[] station = s.toCharArray();

        if (station[0] == 'A' & station[1] == 'A' & station[2] == 'A') {
            System.out.println("No");
        } else if (station[0] == 'B' & station[1] == 'B' & station[2] == 'B') {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        char[] station = s.toCharArray();

        if (station[0] == 'A' & station[1] == 'A' & station[2] == 'A') {
            System.out.println("No");
        } else if (station[0] == 'B' & station[1] == 'B' & station[2] == 'B') {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        char[] station = s.toCharArray();

        if (station[0] == 'A' & station[1] == 'A' & station[2] == 'A') {
            System.out.println("No");
        } else if (station[0] == 'B' & station[1] == 'B' & station[2] == 'B') {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.nextLine(); s scanner.nextLine() scanner.nextLine scanner char[] station = s.toCharArray(); station s.toCharArray() s.toCharArray s if (station[0] == 'A' & station[1] == 'A' & station[2] == 'A') {
            System.out.println("No");
        } else if (station[0] == 'B' & station[1] == 'B' & station[2] == 'B') {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        } station[0] == 'A' & station[1] == 'A' & station[2] == 'A' station[0] == 'A' & station[1] == 'A' & station[2] == 'A' station[0] == 'A' station[0] station 0 'A' station[1] == 'A' station[1] station 1 'A' station[2] == 'A' station[2] station 2 'A' {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" if (station[0] == 'B' & station[1] == 'B' & station[2] == 'B') {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        } station[0] == 'B' & station[1] == 'B' & station[2] == 'B' station[0] == 'B' & station[1] == 'B' & station[2] == 'B' station[0] == 'B' station[0] station 0 'B' station[1] == 'B' station[1] station 1 'B' station[2] == 'B' station[2] station 2 'B' {
            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 scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        char[] station = s.toCharArray();

        if (station[0] == 'A' & station[1] == 'A' & station[2] == 'A') {
            System.out.println("No");
        } else if (station[0] == 'B' & station[1] == 'B' & station[2] == 'B') {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        char[] station = s.toCharArray();

        if (station[0] == 'A' & station[1] == 'A' & station[2] == 'A') {
            System.out.println("No");
        } else if (station[0] == 'B' & station[1] == 'B' & station[2] == 'B') {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        char[] station = s.toCharArray();

        if (station[0] == 'A' & station[1] == 'A' & station[2] == 'A') {
            System.out.println("No");
        } else if (station[0] == 'B' & station[1] == 'B' & station[2] == 'B') {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
    }
}