import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println((s.equals("AAA") || s.equals("BBB")) ? "No" : "Yes");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println((s.equals("AAA") || s.equals("BBB")) ? "No" : "Yes");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println((s.equals("AAA") || s.equals("BBB")) ? "No" : "Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println((s.equals("AAA") || s.equals("BBB")) ? "No" : "Yes");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc System.out.println((s.equals("AAA") || s.equals("BBB")) ? "No" : "Yes") System.out.println System.out System System.out (s.equals("AAA") || s.equals("BBB")) ? "No" : "Yes" (s.equals("AAA") || s.equals("BBB")) s.equals("AAA") s.equals s "AAA" s.equals("BBB") s.equals s "BBB" "No" "Yes" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println((s.equals("AAA") || s.equals("BBB")) ? "No" : "Yes");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println((s.equals("AAA") || s.equals("BBB")) ? "No" : "Yes");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println((s.equals("AAA") || s.equals("BBB")) ? "No" : "Yes");
    }
}
