import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
    	Scanner input = new Scanner(System.in);
      	String s = input.nextLine();
      	int c = 0;
        for (int i = 0; i < s.length(); i++)
        	if (s.charAt(i) == 'A')
              c++;
      	if (c == 0 || c == 3)
          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 input = new Scanner(System.in);
      	String s = input.nextLine();
      	int c = 0;
        for (int i = 0; i < s.length(); i++)
        	if (s.charAt(i) == 'A')
              c++;
      	if (c == 0 || c == 3)
          System.out.println("No");
      	else
          System.out.println("Yes");
    }
} Main public static void main(String[] args) {
    	Scanner input = new Scanner(System.in);
      	String s = input.nextLine();
      	int c = 0;
        for (int i = 0; i < s.length(); i++)
        	if (s.charAt(i) == 'A')
              c++;
      	if (c == 0 || c == 3)
          System.out.println("No");
      	else
          System.out.println("Yes");
    } main {
    	Scanner input = new Scanner(System.in);
      	String s = input.nextLine();
      	int c = 0;
        for (int i = 0; i < s.length(); i++)
        	if (s.charAt(i) == 'A')
              c++;
      	if (c == 0 || c == 3)
          System.out.println("No");
      	else
          System.out.println("Yes");
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) String s = input.nextLine(); s input.nextLine() input.nextLine input int c = 0; c 0 for (int i = 0; i < s.length(); i++)
        	if (s.charAt(i) == 'A')
              c++; int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i if (s.charAt(i) == 'A')
              c++; if (s.charAt(i) == 'A')
              c++; s.charAt(i) == 'A' s.charAt(i) s.charAt s i 'A' c++ c if (c == 0 || c == 3)
          System.out.println("No");
      	else
          System.out.println("Yes"); c == 0 || c == 3 c == 0 c 0 c == 3 c 3 System.out.println("No") System.out.println System.out System System.out "No" 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 input = new Scanner(System.in);
      	String s = input.nextLine();
      	int c = 0;
        for (int i = 0; i < s.length(); i++)
        	if (s.charAt(i) == 'A')
              c++;
      	if (c == 0 || c == 3)
          System.out.println("No");
      	else
          System.out.println("Yes");
    }
} public class Main {
	public static void main(String[] args) {
    	Scanner input = new Scanner(System.in);
      	String s = input.nextLine();
      	int c = 0;
        for (int i = 0; i < s.length(); i++)
        	if (s.charAt(i) == 'A')
              c++;
      	if (c == 0 || c == 3)
          System.out.println("No");
      	else
          System.out.println("Yes");
    }
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
    	Scanner input = new Scanner(System.in);
      	String s = input.nextLine();
      	int c = 0;
        for (int i = 0; i < s.length(); i++)
        	if (s.charAt(i) == 'A')
              c++;
      	if (c == 0 || c == 3)
          System.out.println("No");
      	else
          System.out.println("Yes");
    }
}