import java.io.*;
import java.util.*;
//import javafx.util.Pair;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		//String []s=br.readLine().split(" ");
		//int N = Integer.parseInt(s[0]);
		//int M = Integer.parseInt(s[1]);
		
		int arr[]=new int[2];	
		
		char ch[]=br.readLine().toCharArray();
		
		for(int i=0;i<ch.length;i++)
		{
			if(ch[i]=='A')
				arr[0]++;
			else
				arr[1]++;
		}	

		if(arr[0]>0 && arr[1]>0)
			out.println("Yes");
		else
			out.println("No");
		
		
	}
	
	
}

 import java.io.*; io.* java import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		//String []s=br.readLine().split(" ");
		//int N = Integer.parseInt(s[0]);
		//int M = Integer.parseInt(s[1]);
		
		int arr[]=new int[2];	
		
		char ch[]=br.readLine().toCharArray();
		
		for(int i=0;i<ch.length;i++)
		{
			if(ch[i]=='A')
				arr[0]++;
			else
				arr[1]++;
		}	

		if(arr[0]>0 && arr[1]>0)
			out.println("Yes");
		else
			out.println("No");
		
		
	}
	
	
} Main public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		//String []s=br.readLine().split(" ");
		//int N = Integer.parseInt(s[0]);
		//int M = Integer.parseInt(s[1]);
		
		int arr[]=new int[2];	
		
		char ch[]=br.readLine().toCharArray();
		
		for(int i=0;i<ch.length;i++)
		{
			if(ch[i]=='A')
				arr[0]++;
			else
				arr[1]++;
		}	

		if(arr[0]>0 && arr[1]>0)
			out.println("Yes");
		else
			out.println("No");
		
		
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		//String []s=br.readLine().split(" ");
		//int N = Integer.parseInt(s[0]);
		//int M = Integer.parseInt(s[1]);
		
		int arr[]=new int[2];	
		
		char ch[]=br.readLine().toCharArray();
		
		for(int i=0;i<ch.length;i++)
		{
			if(ch[i]=='A')
				arr[0]++;
			else
				arr[1]++;
		}	

		if(arr[0]>0 && arr[1]>0)
			out.println("Yes");
		else
			out.println("No");
		
		
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int arr[]=new int[2]; arr new int[2] 2 char ch[]=br.readLine().toCharArray(); ch br.readLine().toCharArray() br.readLine().toCharArray br.readLine() br.readLine br for(int i=0;i<ch.length;i++)
		{
			if(ch[i]=='A')
				arr[0]++;
			else
				arr[1]++;
		} int i=0; int i=0; i 0 i<ch.length i ch.length ch ch.length i++ i++ i {
			if(ch[i]=='A')
				arr[0]++;
			else
				arr[1]++;
		} {
			if(ch[i]=='A')
				arr[0]++;
			else
				arr[1]++;
		} if(ch[i]=='A')
				arr[0]++;
			else
				arr[1]++; ch[i]=='A' ch[i] ch i 'A' arr[0]++ arr[0] arr 0 arr[1]++ arr[1] arr 1 if(arr[0]>0 && arr[1]>0)
			out.println("Yes");
		else
			out.println("No"); arr[0]>0 && arr[1]>0 arr[0]>0 arr[0] arr 0 0 arr[1]>0 arr[1] arr 1 0 out.println("Yes") out.println out "Yes" out.println("No") out.println out "No" String []args args public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		//String []s=br.readLine().split(" ");
		//int N = Integer.parseInt(s[0]);
		//int M = Integer.parseInt(s[1]);
		
		int arr[]=new int[2];	
		
		char ch[]=br.readLine().toCharArray();
		
		for(int i=0;i<ch.length;i++)
		{
			if(ch[i]=='A')
				arr[0]++;
			else
				arr[1]++;
		}	

		if(arr[0]>0 && arr[1]>0)
			out.println("Yes");
		else
			out.println("No");
		
		
	}
	
	
} public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		//String []s=br.readLine().split(" ");
		//int N = Integer.parseInt(s[0]);
		//int M = Integer.parseInt(s[1]);
		
		int arr[]=new int[2];	
		
		char ch[]=br.readLine().toCharArray();
		
		for(int i=0;i<ch.length;i++)
		{
			if(ch[i]=='A')
				arr[0]++;
			else
				arr[1]++;
		}	

		if(arr[0]>0 && arr[1]>0)
			out.println("Yes");
		else
			out.println("No");
		
		
	}
	
	
} Main
import java.io.*;
import java.util.*;
//import javafx.util.Pair;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		//String []s=br.readLine().split(" ");
		//int N = Integer.parseInt(s[0]);
		//int M = Integer.parseInt(s[1]);
		
		int arr[]=new int[2];	
		
		char ch[]=br.readLine().toCharArray();
		
		for(int i=0;i<ch.length;i++)
		{
			if(ch[i]=='A')
				arr[0]++;
			else
				arr[1]++;
		}	

		if(arr[0]>0 && arr[1]>0)
			out.println("Yes");
		else
			out.println("No");
		
		
	}
	
	
}


