import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		boolean A=S.equals("BBB");
		boolean B=S.equals("AAA");
		System.out.println(A||B?"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();
		boolean A=S.equals("BBB");
		boolean B=S.equals("AAA");
		System.out.println(A||B?"No":"Yes");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		boolean A=S.equals("BBB");
		boolean B=S.equals("AAA");
		System.out.println(A||B?"No":"Yes");
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		boolean A=S.equals("BBB");
		boolean B=S.equals("AAA");
		System.out.println(A||B?"No":"Yes");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc boolean A=S.equals("BBB"); A S.equals("BBB") S.equals S "BBB" boolean B=S.equals("AAA"); B S.equals("AAA") S.equals S "AAA" System.out.println(A||B?"No":"Yes") System.out.println System.out System System.out A||B?"No":"Yes" A||B A B "No" "Yes" String[] args args public class Main {

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		boolean A=S.equals("BBB");
		boolean B=S.equals("AAA");
		System.out.println(A||B?"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();
		boolean A=S.equals("BBB");
		boolean B=S.equals("AAA");
		System.out.println(A||B?"No":"Yes");
	}
}


