import java.util.Scanner;

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

        if ("AAA".equals(inputData) || "BBB".equals(inputData)) {
            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) throws Exception {
        
        Scanner scanner = new Scanner(System.in);
        String inputData = scanner.nextLine();
        scanner.close();

        if ("AAA".equals(inputData) || "BBB".equals(inputData)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner scanner = new Scanner(System.in);
        String inputData = scanner.nextLine();
        scanner.close();

        if ("AAA".equals(inputData) || "BBB".equals(inputData)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        
    } main {
        
        Scanner scanner = new Scanner(System.in);
        String inputData = scanner.nextLine();
        scanner.close();

        if ("AAA".equals(inputData) || "BBB".equals(inputData)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String inputData = scanner.nextLine(); inputData scanner.nextLine() scanner.nextLine scanner scanner.close() scanner.close scanner if ("AAA".equals(inputData) || "BBB".equals(inputData)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        } "AAA".equals(inputData) || "BBB".equals(inputData) "AAA".equals(inputData) "AAA".equals "AAA" inputData "BBB".equals(inputData) "BBB".equals "BBB" inputData {
            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) throws Exception {
        
        Scanner scanner = new Scanner(System.in);
        String inputData = scanner.nextLine();
        scanner.close();

        if ("AAA".equals(inputData) || "BBB".equals(inputData)) {
            System.out.println("No");
        } else {
            System.out.println("Yes");
        }
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scanner = new Scanner(System.in);
        String inputData = scanner.nextLine();
        scanner.close();

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

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

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