import java.util.Scanner;


public class Main {

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

		String S = sc.next();

		boolean bass = false;
		if(!S.substring(0, 1).equals( S.substring(1, 2))) bass = true;
		if(!S.substring(2, 3).equals(S.substring(1, 2))) bass = true;


		if(bass) {
			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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		String S = sc.next();

		boolean bass = false;
		if(!S.substring(0, 1).equals( S.substring(1, 2))) bass = true;
		if(!S.substring(2, 3).equals(S.substring(1, 2))) bass = true;


		if(bass) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

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

		String S = sc.next();

		boolean bass = false;
		if(!S.substring(0, 1).equals( S.substring(1, 2))) bass = true;
		if(!S.substring(2, 3).equals(S.substring(1, 2))) bass = true;


		if(bass) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		String S = sc.next();

		boolean bass = false;
		if(!S.substring(0, 1).equals( S.substring(1, 2))) bass = true;
		if(!S.substring(2, 3).equals(S.substring(1, 2))) bass = true;


		if(bass) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc boolean bass = false; bass false if(!S.substring(0, 1).equals( S.substring(1, 2))) bass = true; !S.substring(0, 1).equals( S.substring(1, 2)) S.substring(0, 1).equals( S.substring(1, 2)) S.substring(0, 1).equals S.substring(0, 1) S.substring S 0 1 S.substring(1, 2) S.substring S 1 2 bass = true bass true if(!S.substring(2, 3).equals(S.substring(1, 2))) bass = true; !S.substring(2, 3).equals(S.substring(1, 2)) S.substring(2, 3).equals(S.substring(1, 2)) S.substring(2, 3).equals S.substring(2, 3) S.substring S 2 3 S.substring(1, 2) S.substring S 1 2 bass = true bass true if(bass) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} bass {
			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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		String S = sc.next();

		boolean bass = false;
		if(!S.substring(0, 1).equals( S.substring(1, 2))) bass = true;
		if(!S.substring(2, 3).equals(S.substring(1, 2))) bass = true;


		if(bass) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

} public class Main {

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

		String S = sc.next();

		boolean bass = false;
		if(!S.substring(0, 1).equals( S.substring(1, 2))) bass = true;
		if(!S.substring(2, 3).equals(S.substring(1, 2))) bass = true;


		if(bass) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

} Main
import java.util.Scanner;


public class Main {

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

		String S = sc.next();

		boolean bass = false;
		if(!S.substring(0, 1).equals( S.substring(1, 2))) bass = true;
		if(!S.substring(2, 3).equals(S.substring(1, 2))) bass = true;


		if(bass) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

}
