import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		String S = scan.next();

		System.out.println(S.equals("AAA") || S.equals("BBB")?"No":"Yes");
		scan.close();

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		String S = scan.next();

		System.out.println(S.equals("AAA") || S.equals("BBB")?"No":"Yes");
		scan.close();

	}

} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		String S = scan.next();

		System.out.println(S.equals("AAA") || S.equals("BBB")?"No":"Yes");
		scan.close();

	} main {

		Scanner scan = new Scanner(System.in);

		String S = scan.next();

		System.out.println(S.equals("AAA") || S.equals("BBB")?"No":"Yes");
		scan.close();

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String S = scan.next(); S scan.next() scan.next scan 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" scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		String S = scan.next();

		System.out.println(S.equals("AAA") || S.equals("BBB")?"No":"Yes");
		scan.close();

	}

} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		String S = scan.next();

		System.out.println(S.equals("AAA") || S.equals("BBB")?"No":"Yes");
		scan.close();

	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		String S = scan.next();

		System.out.println(S.equals("AAA") || S.equals("BBB")?"No":"Yes");
		scan.close();

	}

}
