import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String s = scanner.nextLine();
		String[] split = s.split("");
		Boolean isOK = false;
		String tmp = split[0];
		for(String ss: split){
			if(isOK) break;
			if(!tmp.equals(ss)){
				isOK = true;
			}
		}
		String result = isOK ? "Yes" : "No";
		System.out.println(result);
	}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String s = scanner.nextLine();
		String[] split = s.split("");
		Boolean isOK = false;
		String tmp = split[0];
		for(String ss: split){
			if(isOK) break;
			if(!tmp.equals(ss)){
				isOK = true;
			}
		}
		String result = isOK ? "Yes" : "No";
		System.out.println(result);
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String s = scanner.nextLine();
		String[] split = s.split("");
		Boolean isOK = false;
		String tmp = split[0];
		for(String ss: split){
			if(isOK) break;
			if(!tmp.equals(ss)){
				isOK = true;
			}
		}
		String result = isOK ? "Yes" : "No";
		System.out.println(result);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String s = scanner.nextLine();
		String[] split = s.split("");
		Boolean isOK = false;
		String tmp = split[0];
		for(String ss: split){
			if(isOK) break;
			if(!tmp.equals(ss)){
				isOK = true;
			}
		}
		String result = isOK ? "Yes" : "No";
		System.out.println(result);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.nextLine(); s scanner.nextLine() scanner.nextLine scanner String[] split = s.split(""); split s.split("") s.split s "" Boolean isOK = false; isOK false String tmp = split[0]; tmp split[0] split 0 for(String ss: split){
			if(isOK) break;
			if(!tmp.equals(ss)){
				isOK = true;
			}
		} String ss split {
			if(isOK) break;
			if(!tmp.equals(ss)){
				isOK = true;
			}
		} {
			if(isOK) break;
			if(!tmp.equals(ss)){
				isOK = true;
			}
		} if(isOK) break; isOK break; if(!tmp.equals(ss)){
				isOK = true;
			} !tmp.equals(ss) tmp.equals(ss) tmp.equals tmp ss {
				isOK = true;
			} isOK = true isOK true String result = isOK ? "Yes" : "No"; result isOK ? "Yes" : "No" isOK "Yes" "No" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String s = scanner.nextLine();
		String[] split = s.split("");
		Boolean isOK = false;
		String tmp = split[0];
		for(String ss: split){
			if(isOK) break;
			if(!tmp.equals(ss)){
				isOK = true;
			}
		}
		String result = isOK ? "Yes" : "No";
		System.out.println(result);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String s = scanner.nextLine();
		String[] split = s.split("");
		Boolean isOK = false;
		String tmp = split[0];
		for(String ss: split){
			if(isOK) break;
			if(!tmp.equals(ss)){
				isOK = true;
			}
		}
		String result = isOK ? "Yes" : "No";
		System.out.println(result);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String s = scanner.nextLine();
		String[] split = s.split("");
		Boolean isOK = false;
		String tmp = split[0];
		for(String ss: split){
			if(isOK) break;
			if(!tmp.equals(ss)){
				isOK = true;
			}
		}
		String result = isOK ? "Yes" : "No";
		System.out.println(result);
	}

}
