import java.util.*;
public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String[] strarray = a.split("");

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

		if (strarray[0].equals(strarray[1])&&strarray[1].equals(strarray[2])) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
		
		
      	sc.close();
    }
		
		
} Main public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String[] strarray = a.split("");

		if (strarray[0].equals(strarray[1])&&strarray[1].equals(strarray[2])) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
		
		
      	sc.close();
    } main {
      	
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String[] strarray = a.split("");

		if (strarray[0].equals(strarray[1])&&strarray[1].equals(strarray[2])) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
		
		
      	sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String[] strarray = a.split(""); strarray a.split("") a.split a "" if (strarray[0].equals(strarray[1])&&strarray[1].equals(strarray[2])) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		} strarray[0].equals(strarray[1])&&strarray[1].equals(strarray[2]) strarray[0].equals(strarray[1]) strarray[0].equals strarray[0] strarray 0 strarray[1] strarray 1 strarray[1].equals(strarray[2]) strarray[1].equals strarray[1] strarray 1 strarray[2] strarray 2 {
			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" sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String[] strarray = a.split("");

		if (strarray[0].equals(strarray[1])&&strarray[1].equals(strarray[2])) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
		
		
      	sc.close();
    }
		
		
} public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		
		String a = sc.next();
		String[] strarray = a.split("");

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

		if (strarray[0].equals(strarray[1])&&strarray[1].equals(strarray[2])) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}
		
		
      	sc.close();
    }
		
		
}
