import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
        String[] array = a.split("");
		

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

	}

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

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

	}

	} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
        String[] array = a.split("");
		

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

	} main {
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
        String[] array = a.split("");
		

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

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

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

	}

	} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
        String[] array = a.split("");
		

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

	}

	} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
        String[] array = a.split("");
		

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

	}

	}