import java.util.*;
public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		char[] S = new char[3];
		String SS = sc.next();
		String ans = "Yes";
		for(int i = 0;i < 3;i++){
			S = SS.toCharArray();
		}
		if(S[0] == S[1] && S[1] == S[2]){
			ans = "No";
		}
		System.out.println(ans);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		char[] S = new char[3];
		String SS = sc.next();
		String ans = "Yes";
		for(int i = 0;i < 3;i++){
			S = SS.toCharArray();
		}
		if(S[0] == S[1] && S[1] == S[2]){
			ans = "No";
		}
		System.out.println(ans);
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		char[] S = new char[3];
		String SS = sc.next();
		String ans = "Yes";
		for(int i = 0;i < 3;i++){
			S = SS.toCharArray();
		}
		if(S[0] == S[1] && S[1] == S[2]){
			ans = "No";
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		char[] S = new char[3];
		String SS = sc.next();
		String ans = "Yes";
		for(int i = 0;i < 3;i++){
			S = SS.toCharArray();
		}
		if(S[0] == S[1] && S[1] == S[2]){
			ans = "No";
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] S = new char[3]; S new char[3] 3 String SS = sc.next(); SS sc.next() sc.next sc String ans = "Yes"; ans "Yes" for(int i = 0;i < 3;i++){
			S = SS.toCharArray();
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			S = SS.toCharArray();
		} {
			S = SS.toCharArray();
		} S = SS.toCharArray() S SS.toCharArray() SS.toCharArray SS if(S[0] == S[1] && S[1] == S[2]){
			ans = "No";
		} S[0] == S[1] && S[1] == S[2] S[0] == S[1] S[0] S 0 S[1] S 1 S[1] == S[2] S[1] S 1 S[2] S 2 {
			ans = "No";
		} ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String args[] args public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		char[] S = new char[3];
		String SS = sc.next();
		String ans = "Yes";
		for(int i = 0;i < 3;i++){
			S = SS.toCharArray();
		}
		if(S[0] == S[1] && S[1] == S[2]){
			ans = "No";
		}
		System.out.println(ans);
	}
} public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		char[] S = new char[3];
		String SS = sc.next();
		String ans = "Yes";
		for(int i = 0;i < 3;i++){
			S = SS.toCharArray();
		}
		if(S[0] == S[1] && S[1] == S[2]){
			ans = "No";
		}
		System.out.println(ans);
	}
} Main
import java.util.*;
public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		char[] S = new char[3];
		String SS = sc.next();
		String ans = "Yes";
		for(int i = 0;i < 3;i++){
			S = SS.toCharArray();
		}
		if(S[0] == S[1] && S[1] == S[2]){
			ans = "No";
		}
		System.out.println(ans);
	}
}