import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		char c1 = s.charAt(0);
		char c2 = s.charAt(1);
		char c3 = s.charAt(2);
		if (c1 == c2 && c2 == c3) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

		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();
		char c1 = s.charAt(0);
		char c2 = s.charAt(1);
		char c3 = s.charAt(2);
		if (c1 == c2 && c2 == c3) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		char c1 = s.charAt(0);
		char c2 = s.charAt(1);
		char c3 = s.charAt(2);
		if (c1 == c2 && c2 == c3) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		char c1 = s.charAt(0);
		char c2 = s.charAt(1);
		char c3 = s.charAt(2);
		if (c1 == c2 && c2 == c3) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc char c1 = s.charAt(0); c1 s.charAt(0) s.charAt s 0 char c2 = s.charAt(1); c2 s.charAt(1) s.charAt s 1 char c3 = s.charAt(2); c3 s.charAt(2) s.charAt s 2 if (c1 == c2 && c2 == c3) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		} c1 == c2 && c2 == c3 c1 == c2 c1 c2 c2 == c3 c2 c3 {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" 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();
		char c1 = s.charAt(0);
		char c2 = s.charAt(1);
		char c3 = s.charAt(2);
		if (c1 == c2 && c2 == c3) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		char c1 = s.charAt(0);
		char c2 = s.charAt(1);
		char c3 = s.charAt(2);
		if (c1 == c2 && c2 == c3) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

		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();
		char c1 = s.charAt(0);
		char c2 = s.charAt(1);
		char c3 = s.charAt(2);
		if (c1 == c2 && c2 == c3) {
			System.out.println("No");
		} else {
			System.out.println("Yes");
		}

		sc.close();
	}

}
