import java.io.*;
import java.util.*;
import java.math.*;
import java.util.regex.Pattern;
class Main
{
		// your code goes here
		public static void main(String args[])
		{
                   // Comparator cmprtr=null;
                   String s;int a=0,b=0;
                   Scanner sc=new Scanner(System.in);
                   s=sc.next();
                   String s1[]=s.split("");
                   for(int i=0;i<3;i++)
                   {
                       if(s1[i].equals("A"))
                       {
                           a++;
                       }
                       else
                       {
                           b++;
                       }
                   }
                   if(a>0 && b>0)
                   {
                       System.out.print("Yes");
                   }
                   else
                   {
                       System.out.println("No");
                   }
                }} import java.io.*; io.* java import java.util.*; util.* java import java.math.*; math.* java import java.util.regex.Pattern; Pattern java.util.regex class Main
{
		// your code goes here
		public static void main(String args[])
		{
                   // Comparator cmprtr=null;
                   String s;int a=0,b=0;
                   Scanner sc=new Scanner(System.in);
                   s=sc.next();
                   String s1[]=s.split("");
                   for(int i=0;i<3;i++)
                   {
                       if(s1[i].equals("A"))
                       {
                           a++;
                       }
                       else
                       {
                           b++;
                       }
                   }
                   if(a>0 && b>0)
                   {
                       System.out.print("Yes");
                   }
                   else
                   {
                       System.out.println("No");
                   }
                }} Main // your code goes here
		public static void main(String args[])
		{
                   // Comparator cmprtr=null;
                   String s;int a=0,b=0;
                   Scanner sc=new Scanner(System.in);
                   s=sc.next();
                   String s1[]=s.split("");
                   for(int i=0;i<3;i++)
                   {
                       if(s1[i].equals("A"))
                       {
                           a++;
                       }
                       else
                       {
                           b++;
                       }
                   }
                   if(a>0 && b>0)
                   {
                       System.out.print("Yes");
                   }
                   else
                   {
                       System.out.println("No");
                   }
                } main {
                   // Comparator cmprtr=null;
                   String s;int a=0,b=0;
                   Scanner sc=new Scanner(System.in);
                   s=sc.next();
                   String s1[]=s.split("");
                   for(int i=0;i<3;i++)
                   {
                       if(s1[i].equals("A"))
                       {
                           a++;
                       }
                       else
                       {
                           b++;
                       }
                   }
                   if(a>0 && b>0)
                   {
                       System.out.print("Yes");
                   }
                   else
                   {
                       System.out.println("No");
                   }
                } String s; s int a=0 a 0 b=0; b 0 Scanner sc=new Scanner(System.in); sc new Scanner(System.in) s=sc.next() s sc.next() sc.next sc String s1[]=s.split(""); s1 s.split("") s.split s "" for(int i=0;i<3;i++)
                   {
                       if(s1[i].equals("A"))
                       {
                           a++;
                       }
                       else
                       {
                           b++;
                       }
                   } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
                       if(s1[i].equals("A"))
                       {
                           a++;
                       }
                       else
                       {
                           b++;
                       }
                   } {
                       if(s1[i].equals("A"))
                       {
                           a++;
                       }
                       else
                       {
                           b++;
                       }
                   } if(s1[i].equals("A"))
                       {
                           a++;
                       }
                       else
                       {
                           b++;
                       } s1[i].equals("A") s1[i].equals s1[i] s1 i "A" {
                           a++;
                       } a++ a {
                           b++;
                       } b++ b if(a>0 && b>0)
                   {
                       System.out.print("Yes");
                   }
                   else
                   {
                       System.out.println("No");
                   } a>0 && b>0 a>0 a 0 b>0 b 0 {
                       System.out.print("Yes");
                   } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
                       System.out.println("No");
                   } System.out.println("No") System.out.println System.out System System.out "No" String args[] args
import java.io.*;
import java.util.*;
import java.math.*;
import java.util.regex.Pattern;
class Main
{
		// your code goes here
		public static void main(String args[])
		{
                   // Comparator cmprtr=null;
                   String s;int a=0,b=0;
                   Scanner sc=new Scanner(System.in);
                   s=sc.next();
                   String s1[]=s.split("");
                   for(int i=0;i<3;i++)
                   {
                       if(s1[i].equals("A"))
                       {
                           a++;
                       }
                       else
                       {
                           b++;
                       }
                   }
                   if(a>0 && b>0)
                   {
                       System.out.print("Yes");
                   }
                   else
                   {
                       System.out.println("No");
                   }
                }}