import java.util.*;
class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        
        String a = s.substring(0,1);
        String b = s.substring(1,2);
        String c = s.substring(2,3);
        
        if((a.equals(b))&&(a.equals(c))){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} import java.util.*; util.* java class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        
        String a = s.substring(0,1);
        String b = s.substring(1,2);
        String c = s.substring(2,3);
        
        if((a.equals(b))&&(a.equals(c))){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} Main public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        
        String a = s.substring(0,1);
        String b = s.substring(1,2);
        String c = s.substring(2,3);
        
        if((a.equals(b))&&(a.equals(c))){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        
        String a = s.substring(0,1);
        String b = s.substring(1,2);
        String c = s.substring(2,3);
        
        if((a.equals(b))&&(a.equals(c))){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String a = s.substring(0,1); a s.substring(0,1) s.substring s 0 1 String b = s.substring(1,2); b s.substring(1,2) s.substring s 1 2 String c = s.substring(2,3); c s.substring(2,3) s.substring s 2 3 if((a.equals(b))&&(a.equals(c))){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        } (a.equals(b))&&(a.equals(c)) (a.equals(b)) a.equals a b (a.equals(c)) a.equals a c {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args
import java.util.*;
class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        
        String a = s.substring(0,1);
        String b = s.substring(1,2);
        String c = s.substring(2,3);
        
        if((a.equals(b))&&(a.equals(c))){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
}