import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String isDiff = "No";

		char station = S.charAt(0);
		for (int i = 1; i < 3; i++) {
			char temp = S.charAt(i);
			if (station != temp) {
				isDiff = "Yes";
			}
		}

		System.out.println(isDiff);

		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String isDiff = "No";

		char station = S.charAt(0);
		for (int i = 1; i < 3; i++) {
			char temp = S.charAt(i);
			if (station != temp) {
				isDiff = "Yes";
			}
		}

		System.out.println(isDiff);

		sc.close();
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String isDiff = "No";

		char station = S.charAt(0);
		for (int i = 1; i < 3; i++) {
			char temp = S.charAt(i);
			if (station != temp) {
				isDiff = "Yes";
			}
		}

		System.out.println(isDiff);

		sc.close();
	} main {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String isDiff = "No";

		char station = S.charAt(0);
		for (int i = 1; i < 3; i++) {
			char temp = S.charAt(i);
			if (station != temp) {
				isDiff = "Yes";
			}
		}

		System.out.println(isDiff);

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String isDiff = "No"; isDiff "No" char station = S.charAt(0); station S.charAt(0) S.charAt S 0 for (int i = 1; i < 3; i++) {
			char temp = S.charAt(i);
			if (station != temp) {
				isDiff = "Yes";
			}
		} int i = 1; int i = 1; i 1 i < 3 i 3 i++ i++ i {
			char temp = S.charAt(i);
			if (station != temp) {
				isDiff = "Yes";
			}
		} {
			char temp = S.charAt(i);
			if (station != temp) {
				isDiff = "Yes";
			}
		} char temp = S.charAt(i); temp S.charAt(i) S.charAt S i if (station != temp) {
				isDiff = "Yes";
			} station != temp station temp {
				isDiff = "Yes";
			} isDiff = "Yes" isDiff "Yes" System.out.println(isDiff) System.out.println System.out System System.out isDiff sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String isDiff = "No";

		char station = S.charAt(0);
		for (int i = 1; i < 3; i++) {
			char temp = S.charAt(i);
			if (station != temp) {
				isDiff = "Yes";
			}
		}

		System.out.println(isDiff);

		sc.close();
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String isDiff = "No";

		char station = S.charAt(0);
		for (int i = 1; i < 3; i++) {
			char temp = S.charAt(i);
			if (station != temp) {
				isDiff = "Yes";
			}
		}

		System.out.println(isDiff);

		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String isDiff = "No";

		char station = S.charAt(0);
		for (int i = 1; i < 3; i++) {
			char temp = S.charAt(i);
			if (station != temp) {
				isDiff = "Yes";
			}
		}

		System.out.println(isDiff);

		sc.close();
	}
}