
import java.util.*;

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

import java.util.*;

public class Main {
	static public void main(String args[]){
		Scanner sc=new Scanner(System.in);
		 
		 String str=sc.next();
		 
		 if((str.charAt(0))==(str.charAt(1))&&
		 (str.charAt(2))==(str.charAt(1))&&
		 (str.charAt(0))==(str.charAt(2))){
		 	System.out.print("No");
		 }
		 else{
		 	System.out.print("Yes");
		 }
	}
}