import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);
		
		String a=input.nextLine();
	
		boolean ok=false;
		for(int i=1;i<3;i++)
			if(a.charAt(0)!=a.charAt(i))
				ok=true;
		
		if(ok)
			System.out.println("Yes");
		else
			System.out.println("No");
		
	
	}
	

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);
		
		String a=input.nextLine();
	
		boolean ok=false;
		for(int i=1;i<3;i++)
			if(a.charAt(0)!=a.charAt(i))
				ok=true;
		
		if(ok)
			System.out.println("Yes");
		else
			System.out.println("No");
		
	
	}
	

} Main public static void main(String[] args) {

		Scanner input = new Scanner(System.in);
		
		String a=input.nextLine();
	
		boolean ok=false;
		for(int i=1;i<3;i++)
			if(a.charAt(0)!=a.charAt(i))
				ok=true;
		
		if(ok)
			System.out.println("Yes");
		else
			System.out.println("No");
		
	
	} main {

		Scanner input = new Scanner(System.in);
		
		String a=input.nextLine();
	
		boolean ok=false;
		for(int i=1;i<3;i++)
			if(a.charAt(0)!=a.charAt(i))
				ok=true;
		
		if(ok)
			System.out.println("Yes");
		else
			System.out.println("No");
		
	
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) String a=input.nextLine(); a input.nextLine() input.nextLine input boolean ok=false; ok false for(int i=1;i<3;i++)
			if(a.charAt(0)!=a.charAt(i))
				ok=true; int i=1; int i=1; i 1 i<3 i 3 i++ i++ i if(a.charAt(0)!=a.charAt(i))
				ok=true; if(a.charAt(0)!=a.charAt(i))
				ok=true; a.charAt(0)!=a.charAt(i) a.charAt(0) a.charAt a 0 a.charAt(i) a.charAt a i ok=true ok true if(ok)
			System.out.println("Yes");
		else
			System.out.println("No"); ok 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) {

		Scanner input = new Scanner(System.in);
		
		String a=input.nextLine();
	
		boolean ok=false;
		for(int i=1;i<3;i++)
			if(a.charAt(0)!=a.charAt(i))
				ok=true;
		
		if(ok)
			System.out.println("Yes");
		else
			System.out.println("No");
		
	
	}
	

} public class Main {

	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);
		
		String a=input.nextLine();
	
		boolean ok=false;
		for(int i=1;i<3;i++)
			if(a.charAt(0)!=a.charAt(i))
				ok=true;
		
		if(ok)
			System.out.println("Yes");
		else
			System.out.println("No");
		
	
	}
	

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);
		
		String a=input.nextLine();
	
		boolean ok=false;
		for(int i=1;i<3;i++)
			if(a.charAt(0)!=a.charAt(i))
				ok=true;
		
		if(ok)
			System.out.println("Yes");
		else
			System.out.println("No");
		
	
	}
	

}
