import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str =  scan.next();
		String[] strArray = str.split("");
		int flag = 0;
		String bs = strArray[0];
		for(int i =0 ; i < 3; i++) {
			if ( ! bs.equals(strArray[i])){
				flag = 1;
			}
			bs = strArray[i];
		}

		if (flag == 1){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} 


	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str =  scan.next();
		String[] strArray = str.split("");
		int flag = 0;
		String bs = strArray[0];
		for(int i =0 ; i < 3; i++) {
			if ( ! bs.equals(strArray[i])){
				flag = 1;
			}
			bs = strArray[i];
		}

		if (flag == 1){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} 


	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str =  scan.next();
		String[] strArray = str.split("");
		int flag = 0;
		String bs = strArray[0];
		for(int i =0 ; i < 3; i++) {
			if ( ! bs.equals(strArray[i])){
				flag = 1;
			}
			bs = strArray[i];
		}

		if (flag == 1){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} 


	} main {
		Scanner scan = new Scanner(System.in);
		String str =  scan.next();
		String[] strArray = str.split("");
		int flag = 0;
		String bs = strArray[0];
		for(int i =0 ; i < 3; i++) {
			if ( ! bs.equals(strArray[i])){
				flag = 1;
			}
			bs = strArray[i];
		}

		if (flag == 1){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} 


	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str =  scan.next(); str scan.next() scan.next scan String[] strArray = str.split(""); strArray str.split("") str.split str "" int flag = 0; flag 0 String bs = strArray[0]; bs strArray[0] strArray 0 for(int i =0 ; i < 3; i++) {
			if ( ! bs.equals(strArray[i])){
				flag = 1;
			}
			bs = strArray[i];
		} int i =0 ; int i =0 ; i 0 i < 3 i 3 i++ i++ i {
			if ( ! bs.equals(strArray[i])){
				flag = 1;
			}
			bs = strArray[i];
		} {
			if ( ! bs.equals(strArray[i])){
				flag = 1;
			}
			bs = strArray[i];
		} if ( ! bs.equals(strArray[i])){
				flag = 1;
			} ! bs.equals(strArray[i]) bs.equals(strArray[i]) bs.equals bs strArray[i] strArray i {
				flag = 1;
			} flag = 1 flag 1 bs = strArray[i] bs strArray[i] strArray i if (flag == 1){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} flag == 1 flag 1 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} 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 scan = new Scanner(System.in);
		String str =  scan.next();
		String[] strArray = str.split("");
		int flag = 0;
		String bs = strArray[0];
		for(int i =0 ; i < 3; i++) {
			if ( ! bs.equals(strArray[i])){
				flag = 1;
			}
			bs = strArray[i];
		}

		if (flag == 1){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} 


	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str =  scan.next();
		String[] strArray = str.split("");
		int flag = 0;
		String bs = strArray[0];
		for(int i =0 ; i < 3; i++) {
			if ( ! bs.equals(strArray[i])){
				flag = 1;
			}
			bs = strArray[i];
		}

		if (flag == 1){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} 


	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str =  scan.next();
		String[] strArray = str.split("");
		int flag = 0;
		String bs = strArray[0];
		for(int i =0 ; i < 3; i++) {
			if ( ! bs.equals(strArray[i])){
				flag = 1;
			}
			bs = strArray[i];
		}

		if (flag == 1){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		} 


	}
}