/*package whatever //do not write package name here */

import java.io.*;
import java.util.Scanner;


public class Main {
	public static void main (String[] args) {
// 		System.out.println("GfG!"); 
Scanner sc = new Scanner(System.in);
String s= sc.next();
int a=0;
int b= 0;
for(int i=0;i<3;i++){
    char ch = s.charAt(i);
    if(ch=='A')
    a++;
    else
    b++;
    
}
if(a!=0 && b!=0)
System.out.println("Yes");
else
System.out.println("No");

	}
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util public class Main {
	public static void main (String[] args) {
// 		System.out.println("GfG!"); 
Scanner sc = new Scanner(System.in);
String s= sc.next();
int a=0;
int b= 0;
for(int i=0;i<3;i++){
    char ch = s.charAt(i);
    if(ch=='A')
    a++;
    else
    b++;
    
}
if(a!=0 && b!=0)
System.out.println("Yes");
else
System.out.println("No");

	}
} Main public static void main (String[] args) {
// 		System.out.println("GfG!"); 
Scanner sc = new Scanner(System.in);
String s= sc.next();
int a=0;
int b= 0;
for(int i=0;i<3;i++){
    char ch = s.charAt(i);
    if(ch=='A')
    a++;
    else
    b++;
    
}
if(a!=0 && b!=0)
System.out.println("Yes");
else
System.out.println("No");

	} main {
// 		System.out.println("GfG!"); 
Scanner sc = new Scanner(System.in);
String s= sc.next();
int a=0;
int b= 0;
for(int i=0;i<3;i++){
    char ch = s.charAt(i);
    if(ch=='A')
    a++;
    else
    b++;
    
}
if(a!=0 && b!=0)
System.out.println("Yes");
else
System.out.println("No");

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s= sc.next(); s sc.next() sc.next sc int a=0; a 0 int b= 0; b 0 for(int i=0;i<3;i++){
    char ch = s.charAt(i);
    if(ch=='A')
    a++;
    else
    b++;
    
} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
    char ch = s.charAt(i);
    if(ch=='A')
    a++;
    else
    b++;
    
} {
    char ch = s.charAt(i);
    if(ch=='A')
    a++;
    else
    b++;
    
} char ch = s.charAt(i); ch s.charAt(i) s.charAt s i if(ch=='A')
    a++;
    else
    b++; ch=='A' ch 'A' a++ a b++ b if(a!=0 && b!=0)
System.out.println("Yes");
else
System.out.println("No"); a!=0 && b!=0 a!=0 a 0 b!=0 b 0 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
	public static void main (String[] args) {
// 		System.out.println("GfG!"); 
Scanner sc = new Scanner(System.in);
String s= sc.next();
int a=0;
int b= 0;
for(int i=0;i<3;i++){
    char ch = s.charAt(i);
    if(ch=='A')
    a++;
    else
    b++;
    
}
if(a!=0 && b!=0)
System.out.println("Yes");
else
System.out.println("No");

	}
} public class Main {
	public static void main (String[] args) {
// 		System.out.println("GfG!"); 
Scanner sc = new Scanner(System.in);
String s= sc.next();
int a=0;
int b= 0;
for(int i=0;i<3;i++){
    char ch = s.charAt(i);
    if(ch=='A')
    a++;
    else
    b++;
    
}
if(a!=0 && b!=0)
System.out.println("Yes");
else
System.out.println("No");

	}
} Main
/*package whatever //do not write package name here */

import java.io.*;
import java.util.Scanner;


public class Main {
	public static void main (String[] args) {
// 		System.out.println("GfG!"); 
Scanner sc = new Scanner(System.in);
String s= sc.next();
int a=0;
int b= 0;
for(int i=0;i<3;i++){
    char ch = s.charAt(i);
    if(ch=='A')
    a++;
    else
    b++;
    
}
if(a!=0 && b!=0)
System.out.println("Yes");
else
System.out.println("No");

	}
}